Re: Syntax for OR

new topic     » goto parent     » topic index » view thread      » older message » newer message
katsmeow said...


Use parentheses liberally, they come free with each OE installation.

if seqConn[1] = (1 or 3) then 
I tend to use equal() on everything, saves crashing from unequal sequence lengths and other nonsense.

Kat

I'm sorry Kat, but that isn't correct.

(1 or 3) = 1 
-- so if  
seqConn[1] = 3 
-- then seqConn[1] = (1 or 3) will be false 

Lonny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu