I’m having a bit of trouble working out the syntax for doing an inline If statement.
Here is my desired output
<select id="creatives-filter">
<option value="any">All Creatives</option>
<option value="images">Images</option>
<option **selected** value="elements">Elements</option>
<option value="words">Words</option>
<option value="self">Self</option>
<option value="tastes">Tastes</option>
<option value="sounds">Sounds</option>
</select>
I want to output selected based on whether the query string is Example Domain
And do so accordingly to all other fields.
This is what I have unsuccessfully tried thus far:
This works.
Images <option "{{If check={Get type_query} is value=images }selected{/If}}" value="images">Images</option>
<option check="{If check={Get type_query} is value=images }selected{/If}" value="images">Images</option>
<option check="{{If check={Get type_query} is value=images }selected{/If}}" value="images">Images</option>
========
ANy help is truly appreciated.