A programming question
cedtinsi
Posts: 45
Thank You and Welcome.
I have a programming concern.
Can I use multiple conjonctions in a statement?
I mean something like:
DO
LOOP UNTIL (IN1=1)OR (IN2=1)OR (IN3=1)OR (IN4=1)
Can the Basic Stamp read and execute that?
Please, as always, your help will be appreciated.
Thanks.
I have a programming concern.
Can I use multiple conjonctions in a statement?
I mean something like:
DO
LOOP UNTIL (IN1=1)OR (IN2=1)OR (IN3=1)OR (IN4=1)
Can the Basic Stamp read and execute that?
Please, as always, your help will be appreciated.
Thanks.
Comments
I consulted the Basic Stamp Manual before asking the question.
I am sorry for any misunderstanding; but my question is: can I use multiple OR's or AND's in a conditional statement?
I mean, more than one OR or one AND; what is the maximum I can use?
{$STAMPBS2}
{$PBASIC 2.5}
i VAR Byte
Do
i=i+1
DEBUG " * "
LOOP UNTIL ((i=1) OR (i=2) OR (i=3) OR (i=4))
can I do that?
Again, thank you.
This forum is amazing!
Assistance for free!!!
Thank you to all of you.
Anyone who reads this, is making it possible.
thanks.