conditions : if
DESCRIPTION
<if> tests a user variable against either a second user variable or a supplied value. If relation is supplied, <if> will compare the values as numbers according to the relation; otherwise they are tested for equivalency. If both var2 and value are present, <if> will evaluate to true if either condition matches.
PARAMETERS
var - user variable to test
var2 (optionl) - second user variable
value (optional) - supplied string
relation (optional, =|>|<|>=|<=) - value relationship
EXAMPLES
...
<if var="points" value="5">
You have 5 points! You win!
<else>
You need
<subtract value="5">
<get var="points" />
</subtract>
more points to win.
</else>
</if>
...
<if var="points" value="5">
You have 5 points! You win!
<else>
You need
<subtract value="5">
<get var="points" />
</subtract>
more points to win.
</else>
</if>
...