if_then_else

Description:

Conditional attribute transformation

Syntax:

Two to three parameters:

1. Value to be checked for equality

2. Value returned in case of equity

3. Value returned in case of inequality

Example:

Value to be checked for equality using the string true:

<operation name="if_then_else">
<constant>not true</constant>
<constant>Condition is met</constant>
<constant>Condition is not met
</constant>
</operation>

Return value:

Condition is not met
If the first value is equal to the string true (not case sensitive), the second value is returned, otherwise (if available) the third value.

If no value can be determined for the first parameter (condition) or the third parameter if the condition is not met, nothing is returned.