Repeat while x == y or z
T Chap
Posts: 4,223
Repeat while x == y or z
I have found nothing similar to this. I would like to buy some time by not having to use two lines:
Repeat while x == y check y Repeat while x == z check z
Anyone know a trick to speed this up?
Y and Z are reading I2C input pins on an expander. It will work as is but there are a lot of reads to do in the loop, I was hoping to streamline.
Comments
repeat while (x == y) or (x==z)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.