I can't find a definitive answer to this, is this legal?
IF result = 15 OR result = 30 OR result = 45 OR result = 60 THEN
xxx
xxx
ENDIF
How many conditions can you use in an IF THEN ?
Thanks!
Printable View
I can't find a definitive answer to this, is this legal?
IF result = 15 OR result = 30 OR result = 45 OR result = 60 THEN
xxx
xxx
ENDIF
How many conditions can you use in an IF THEN ?
Thanks!
Hi,
The conditions would be in brackets i.e.
if (a = 1) or (a = 2) then
I think the number is only limited by memory. I tried 10 no problem.
Regards
Bob
Thanks a lot Bob!
It's still silly though.
Now the maximum in this situation is the overflow of i.Code:var i byte ' counter
FOR i = 15 TO 60 STEP 15
IF result = i THEN
xxx
xxx
ENDIF
NEXT i