fluid

Why Typo3 Developers Drink

Concatenating multiple comparisons with AND, OR or NOT is not possible in f:if.

From the Fluid documentation

<div class="row">
    <f:if condition="{content_3}">
    <f:then>
        <f:if condition="{content_4}">
        <f:then>
            <f:if condition="{content_5}">
            <f:then>
                <div class="col-md-4">
                    {content_3 -> f:format.raw()}
                </div>
                <div class="col-md-4">
                    {content_4 -> f:format.raw()}
                </div>
                <div class="col-md-4">
                    {content_5 -> f:format.raw()}
                </div>
            </f:then>
            <f:else>
                <div class="col-md-6">
                    {content_3 -> f:format.raw()}
                </div>
                <div class="col-md-6">
                    {content_4 -> f:format.raw()}
                </div>
            </f:else>
            </f:if>
        </f:then>
        <f:else>
            <f:if condition="{content_5}">
            <f:then>
                <div class="col-md-6">
                    {content_3 -> f:format.raw()}
                </div>
                <div class="col-md-6">
                    {content_5 -> f:format.raw()}
                </div>
            </f:then>
            <f:else>
                <div class="col-md-12">
                    {content_3 -> f:format.raw()}
                </div>
            </f:else>
            </f:if>
        </f:else>
        </f:if>
    </f:then>
    <f:else>
        <f:if condition="{content_4}">
        <f:then>
            <f:if condition="{content_5}">
            <f:then>
                <div class="col-md-6">
                    {content_4 -> f:format.raw()}
                </div>
                <div class="col-md-6">
                    {content_5 -> f:format.raw()}
                </div>
            </f:then>
            <f:else>
                <div class="col-md-12">
                    {content_4 -> f:format.raw()}
                </div>
            </f:else>
            </f:if>
        </f:then>
        <f:else>
            <f:if condition="{content_5}">
            <f:then>
                <div class="col-md-12">
                    {content_5 -> f:format.raw()}
                </div>
            </f:then>
            <f:else>
            </f:else>
            </f:if>
        </f:else>
        </f:if>
    </f:else>
    </f:if>
</div>