trying to use "or"
mikea
Posts: 283
I have 3 sensors and dont want them to get "stuck" in a repeat loop if the trigger has moved into the zone of another sensor. i want the code to say ...repeat until motion is sensed in zone 2 or zone 3 (if its currently in zone 1) so its position is updated. I think im not using the correct "or" operator. Ive tried |,or,^.Any help would be appreciated.-mike
if ina[1]==1
repeat until ina[2]==1 or ina[3]==1
outa[pin]~~
if ina[1]==1
repeat until ina[2]==1 or ina[3]==1
outa[pin]~~
Comments