• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 <xen:if is="!{$contentTemplate} == 'xyz'"> not working ?

#1
Hey there,
I was wondering why the following conditional statement wasn't working;

Code:
<xen:if is="!{$contentTemplate} == 'xyz'">
This content will show on the xyz template
</xen:if>
Any idea ?
Thanks.
 

Mike

XenForo developer
Staff member
#4
Is that "!" at the beginning intentional? If so, I don't think that's doing what you meant/intended. I guess you actually want the condition to be != ?