Re: Syntax for OR

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

It seems that this syntax is supported ?

if seqConn[1] = 1 or 3 then 

and is equivalent to..

if seqConn[1] = 1 or seqConn[1] = 3 then 

casey

I'm sorry cp but you are totally mistaken. What the parser is seeing is

if (seqConn[1] = 1) or (3)  

and since the

(3) != 0   

then the or is true.

To test this out

seqConn[1] = 2 
if seqConn[1] = 1 or 3 

and see what happens.

Lonny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu