Wyvh Member Sep 15, 2017 #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.
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.
P Paul B XenForo moderator Staff member Sep 15, 2017 #2 It works as expected, where are you using it? Upvote 0 Downvote
Wyvh Member Sep 15, 2017 #3 I'm trying to use it on the PAGE_CONTAINER template, trying to hide X elements from the 'message_page' template. Upvote 0 Downvote
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 Sep 15, 2017 #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 != ? Upvote 0 Downvote
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 != ?