I want to check if two tags have content in them, and set html markup accordingly. And I reuse this snippet several places and I'm having inconsistent results.
{if site_hvite_left == "" OR site_hvite_right == ""}
<div class="row-small">
{if:else}
<div class="row">
{/if}
Some places this works just fine, but other places, I need to add a space in between the quotes for it to make it work. Which makes me think there might be a better way of doing this. Any ideas?
:empty
pseudo-class can help you too.