<if> execute block if a condition is true

name
if
xml namespace
http://moyaproject.com

Conditional IF tag, executes the enclosing block if a condition evaluates to true. If the condition evaluates to false, the enclosing block is skipped. May be followed by <else> or <elif>.

Example

<if test="coffee==0">
    <echo>Get more coffee</echo>
</if>
attributes
name purpose type required? default choices
test Test expression expression Yes
inherited attributes
name purpose type required? default choices
if Conditional expression expression No yes