developer documentation r17362

fm:If

This component will display its contents if the specified value parameter is true.
If the value parameter evaluates to false this component will only display the contents that are within the fm:else node.

In this component "false" will be either a value of 0 or an empty string, anything else will yield "true".

Example

<fm:If value="{$$get.msg}"> Display a success message! <fm:Else> Display a failure message.. </fm:Else> </fm:If>

Supported Attributes

NameRequiredDefaultDescription
valueRequiredN/AThe value to check for.

See also

<< 7.3.15 fm:HTMLSanitizer 7.3.17 fm:IfAfter >>