Attention

TYPO3 v10 has reached end-of-life as of April 30th 2023 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.

Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.

else

Else-Branch of a condition. Only has an effect inside of "If". See the If-ViewHelper for documentation.

= Examples =

<code title="Output content if condition is not met"> <f:if condition="{someCondition}">

<f:else>

condition was not true

</f:else>

</f:if> </code> <output> Everything inside the "else" tag is displayed if the condition evaluates to FALSE. Otherwise nothing is outputted in this example. </output>

Arguments

if

DataType

boolean

Required

false

Description

Condition expression conforming to Fluid boolean rules