Is there a syntax that allows multiple conditionals for an if or a validif? I want to do something like this:
or this:
I ended up using this:
And that works, but I'm still curious if it's possible to use multiple conditionals in a single if statement.
Code:
validif ((field[trtUser].value <> 3) and (field[trtUser].value <> 5))
or this:
Code:
if ((field[trtUser].value <> 3) and (field[trtUser].value <> 5)) then
@valid = 0
endif
I ended up using this:
Code:
if (field[trtUser].value = 3) then
@valid = 0
elseif (field[trtUser].value = 5) then
@valid = 0
else
@valid = 1
endif
And that works, but I'm still curious if it's possible to use multiple conditionals in a single if statement.