Skip to content

<if>

Conditionally renders one of two child widgets based on a boolean condition.

Example

xml
<if condition="show">
    <true>
        <text>Yes</text>
    </true>
    <false>
        <text>No</text>
    </false>
</if>

Attributes

AttributeTypeRequired
conditionstringYes