Shop OBEX P1 Docs P2 Docs Learn Events
Repeat while x == y or z — Parallax Forums

Repeat while x == y or z

T ChapT Chap Posts: 4,223
edited 2008-11-20 08:56 in Propeller 1
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

Sign In or Register to comment.