Hi all,
I'm sure it's due to old age but I'm having serious brian fade.
I have 3 inputs and want the program to wait until one of them goes high.
I would expect this code to sit in the do loop until one input goes high as it is ORing the inputs.
What it actually does is wait for all inputs to go high at the same time.
Where am I going wrong?
Cheers
I'm sure it's due to old age but I'm having serious brian fade.
I have 3 inputs and want the program to wait until one of them goes high.
Code:
[color=Black]WaitForButton:[/color]
[color=Blue]do
loop while [/color][color=Purple]Buttonset [/color][color=DarkCyan]<> [/color][color=Navy]1 [/color][color=DarkCyan]or [/color][color=Purple]buttonup [/color][color=DarkCyan]<> [/color][color=Navy]1 [/color][color=DarkCyan]or [/color][color=Purple]buttondown [/color][color=DarkCyan]<> [/color][color=Navy]1[/color]
What it actually does is wait for all inputs to go high at the same time.
Where am I going wrong?
Cheers