[[if]]

The if snippet provides simple if-then-else logic in templates and chunks e.g.

[[if &subject=`-2` &operator=`>` &operand=`1` &then=`
<strong>subject greater than operand</strong>
` &else=`
<em>subject is less than or equal to operand</em>
`]]
Parameter Description
subject The value to test.
operator The test to perform, ==, !=, <, <=, >, >=, empty, !empty
operand The value to test the subject against.
then The output if the test is true.
else The optional output if the test if false.




TOP