Senior Member
Join Date: May 2013
Posts: 1,458
|
Is there a syntax that allows multiple conditionals for an if or a validif? I want to do something like this:
Code:
validif ((field[trtUser].value <> 3) and (field[trtUser].value <> 5)) Code:
if ((field[trtUser].value <> 3) and (field[trtUser].value <> 5)) then @valid = 0 endif Code:
if (field[trtUser].value = 3) then @valid = 0 elseif (field[trtUser].value = 5) then @valid = 0 else @valid = 1 endif |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
No, you can't combine them like you wanted to (unless you can write things as a tagexpr[] inside a single if () then, since a tagexpr can handle more complex logic).
|
#2 |
|
|