else

Else-Branch of a condition. Only has an effect inside of “If”. See the 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>

Output:

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

Arguments

if

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