%% /if-test public
get-param inp
if-true inp equal "1"
@Found "1" in input
else-if inp equal "2" or inp equal "3"
@Found "2" or "3" in input
get-param inp_num
string-number inp_num to num
if-true num equal 4
@Found 4 in more input
else-if num equal 5 and inp equal "4"
@Found 5 in more input and "4" in input
else-if
@Something else
end-if
else-if
@Found something else
end-if
%%
Copied!
set-string str1="one"
set-string str2="two"
if-true str1+" "+str2 not-equal "one two"
@It can't be true!
end-if
...
set-bool b1 = str1 not-equal "one"
set-bool b2 = str2 equal "two"
if-true b1 && b2 equal false
@It is true!
end-if
...
set-number n1 = 20
if-true n1+10 equal 30 and !b1 equal true and str1 equal "one"
@It is true!
end-if
Copied!