Package

ViewHelpers

ViewHelper Documentation

v:if.condition

Deprecation Notice

Please switch to `v:if`. This view helper will be removed in 2.0.

Condition ViewHelper

Extended condition ViewHelper. Works slightly different from f:if by not rendering the child tag content if the "then" condition is encountered - allowing this usage:

Example

<v:if.condition>
    <v:if.condition.extend>
        ({a} == {b} && {c} != NULL) OR {a} == NULL
    </v:if.condition.extend>
    This text is completely ignored; only text in f:then is echoed
    <f:then>
          Output if TRUE
       </f:then>
</v:if.condition>

Arguments

then anySimpleType

Value to be returned if the condition if met.

else anySimpleType

Value to be returned if the condition if not met.

condition boolean

View helper condition

ViewHelper Resources

Schema Resources