Hello I have a very newbie question. Im trying to close a door with an end switch and press obstacle switch. So I want to servo motor closes until endopen1 OR press1 switch is active, then stop motor. Actually it works ok with only one switch, but I do not understand how I can use || (or) operand before if statement.
I have trying:
button_endopen1 || button_press1 button_endopen1 button_press1 || || button_endopen1 button_press1
but none of them appears to be the correct sintaxis.
Thanks a lot in advance.
sub close1 begin button_endopen1 # ***** or button_press1 here ****** if 6000 1 servo return else 8000 1 servo endif repeat