I have a sub template with an embedded variable. I want to run a query if that variable is empty however the query is run regardless. Remove the query and the statement works fine…
{if "" == "{embed:currentid}" || !embed:currentid }
no id
{if:else}
{exp:query sql="SELECT .... WHERE `id`={embed:currentid}"}
{/exp:query}
{/if}Any help??