OR in IF/THEN
Newzed
Posts: 2,503
If I write:
if x = 1·OR x = 5·OR x = 9·OR x = 13.....................
Is there a limit to the number of ORs I can use?
Sid
if x = 1·OR x = 5·OR x = 9·OR x = 13.....................
Is there a limit to the number of ORs I can use?
Sid
Comments
but if you want to check if X is 1,5,9,13,17 etc
use
if (X-1) mod 4 = 0
regards peter
Sid
See PBASIC help.
regards peter
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Rusty-
--
Rusty Haddock = KD4WLZ = rusty@fe2o3.lonestar.org
**Out yonder in the Van Alstyne (TX) Metropolitan Area**
Microsoft is to software what McDonalds is to gourmet cooking