Command "If"

Summary

IF the given condition evaluates to 'true', the commands embraced by the 'if'-command are executed. The command belongs to the group "Control".


Parameters

Parameter Name Description Type
Condition The condition - returns 'true' or 'false'. valueexpression

Valid parameter combinations



Description

Tests if a condition is true or false. The valueexpression may contain properties, elements, literals and/or functions.

Examples


Example 1

The example below checks if the property name equals "Duck" and the property firstname equals "Donald".
<If Condition="and(equals(name,'Duck'),equals(firstname,'Donald'))">
<CodeBlock...>
</If>