• Resolved pedramalipour68

    (@pedramalipour68)


    Hi, thanks for your great plugin
    I want to use OR/AND operator for pods template, I already have:

    <ul class="product-details">
    [if voice]
    <span>{@voice}</span>
    [/if]
    [if video]
    <span>{@video}</span>
    [/if]
    //other codes
    </ul>

    Now I want to display ul when voice and video both or one of theme are set, something like this:

    
    [if voice && video] //or [if voice || video]
    <ul class="product-details">
    [if voice]
    <span>{@voice}</span>
    [/if]
    [if video]
    <span>{@video}</span>
    [/if]
    //other codes
    </ul>
    [/if]

    but not working, how can I do this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Use And/Or Operator for template’ is closed to new replies.