I can’t seem to get the expected functionality of embedded variables with conditional statements.
As an example of the problem, I want to embed a custom variable called “tip_points” into another template.
{embed="template" points="{tip_points}" }In my template I have the following code:
points: {embed:points}
{if embed:points > 1}
points is more than 1
{if:else}
points is less than or equal 1
{/if}
{if embed:points != ""}
points is not empty
{if:else}
points is empty
{/if}
Obviously, the result I’m expecting is:
points: 2
points is more than 1
points is not empty
But in fact the output I get is:
points: 2
points is less than or equal 1
points is emptyAny ideas what I can do to fix?
Thanks,
Dan