Re: Syntax for OR
- Posted by jimcbrown (admin) Mar 04, 2015
- 1642 views
katsmeow said...
How do we know test what he intended?, he didn't use parenthesis!
Good point. The OP - using a gender-neutral name - did not say which test was intended:
cp said...
It seems that this syntax is supported ?
if seqConn[1] = 1 or 3 then
Or
cp said...
and is equivalent to..
if seqConn[1] = 1 or seqConn[1] = 3 then
casey
If I had to guess though, I'd go with the second one. It seems very unlikely that the first test would ever be intended, since it is always true (and not in a place like a loop where one might want an always true test to perform an infinite loop).