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

Wyvh

Member
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.
 

Wyvh

Member
I'm trying to use it on the PAGE_CONTAINER template, trying to hide X elements from the 'message_page' template.
 

Mike

XenForo developer
Staff member
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 != ?
 
Top