Re: Syntax for OR
- Posted by Lnettnay Mar 03, 2015
- 1653 views
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