Results 1 to 3 of 3

Thread: if statement for checkboxes values

Threaded View

  1. #1
    Senior Member
    Join Date
    Dec 2023
    Posts
    161

    if statement for checkboxes values

    On the listing_details.tpl, is there a way to do an if statement based on checkbox values?

    For example if I have
    group "option"
    field "options" which is type: checkboxes with [x] Radio [] something else [x] one other thing [] etc

    Is there a way to do an if conditional such as:
    {if $listing.option.Fields.options.value == 'radio'}<div class="radio">Radio</div>{/if}
    Last edited by Horizon; February 23, 2024 at 07:37 AM.