else ViewHelper <f:else>

Else-Branch of a condition. Only has an effect inside of f:if. See the f:if ViewHelper for documentation.

Examples

Output content if condition is not met

<f:if condition="{someCondition}">
    <f:else>
        condition was not true
    </f:else>
</f:if>
Copied!

Output:

Everything inside the "else" tag is displayed if the condition evaluates to FALSE.
Otherwise nothing is outputted in this example.

Copied!

Arguments

if

DataType
boolean
Required
false
Description
Condition expression conforming to Fluid boolean rules