Is it possible to do conditionals for embeds? For example,lets say I have this very simple template, test/foo
{if foo}
yes
{if:else}
no
{/if}
In other templates, I want to use this embed in a conditional.
{if '{embed="test/foo"}' == 'yes'} Output is yes {if:else} Output is no {/if}
Unfortunately, when I tried this approach, what I got was always a no
, even if I set test/foo
template to yes.
Am I doing something wrong? Or is this just not possible?