ScottLott Member Dec 7, 2011 #1 I'm trying to setup a conditional statement that applies to an array of specific posts, I can't find what syntax to use for that.
I'm trying to setup a conditional statement that applies to an array of specific posts, I can't find what syntax to use for that.
Paul B XenForo moderator Staff member Dec 7, 2011 #2 Have you tried <xen:if is="{$postId} == x"> or <xen:if is="in_array({$postId}, array(x, y, z))"> I haven't tested that though, so it may not be correct. Upvote 0 Downvote
Have you tried <xen:if is="{$postId} == x"> or <xen:if is="in_array({$postId}, array(x, y, z))"> I haven't tested that though, so it may not be correct.