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

If not in a forum expression

James

Well-known member
#2
Depends on the template. Use {xen:helper dump $var} to see if node_id is available in that variable.
If so, use: <xen:if is="$var.node_id != 123">do something</xen:if>

Wow that took a while on my phone...
 

Jake Bunce

XenForo moderator
Staff member
#3
You forgot the curlies:

Code:
<xen:if is="{$var.node_id} != 123">do something</xen:if>
As James said, it depends on the template. For example, edit this template:

Admin CP -> Appearance -> Templates -> forum_view

You can use this code in that template:

Code:
<xen:if is="{$forum.node_id} != 123">do something</xen:if>