Mouth
Well-known member
With this code ...
... the xen:if is not working (being evaluated). If I remove the xen:set var="$avatar" outside the xen:if, then it's being handled appropriately.
How would I adjust the above code so that the xen:if is evaluated and handled?
Code:
<xen:container var="$head.openGraph"><xen:include template="open_graph_meta">
<xen:set var="$url">-- url --</xen:set>
<xen:set var="$title">-- title --</xen:set>
<xen:set var="$description">-- description --</xen:set>
<xen:if is="-- condition --">
<xen:set var="$avatar">-- value 1 --</xen:set>
<xen:else />
<xen:set var="$avatar">-- value 2 --</xen:set>
</xen:if>
</xen:include></xen:container>
... the xen:if is not working (being evaluated). If I remove the xen:set var="$avatar" outside the xen:if, then it's being handled appropriately.
How would I adjust the above code so that the xen:if is evaluated and handled?