While I couldn't figure out the logic to all the ('s, I tried it anyway but I get "bad expression" when compiling.
I have tried it many different ways with no luck. I spoke with Micro-engineering labs as well and they looked at the post and said that the way you describe, is the correct way but they were unsure if your "exact" expression would work.
Any other thoughts? Could it be because my expressions check a variable as well as a pin state?
This is the 3 expressions I need to break in to individual expression during an UNTIL function. If confusing, I have seperated the 3 expressions below the example.
EXAMPLE:
(Y >= 0) and (BUTTON1 = BUTTONPRESS) OR (Y = 1) AND (BUTTON2 = BUTTONPRESS) OR (Y > 2) AND (BUTTON3 = BUTTONPRESS)
The 3 expressions seperated by the OR
(Y >= 0) and (BUTTON1 = BUTTONPRESS)
(Y = 1) AND (BUTTON2 = BUTTONPRESS)
(Y > 2) AND (BUTTON3 = BUTTONPRESS)
Bookmarks