User ID Conditional In message_user_info


Well-known member
I'm trying to run a conditional on the message_user_info template that performs something based on a user id.

I've dumped ({xen:helper dump, $user}) the user variable and $user.userid is a variable used in that template (["user_id"] => int(407)), but when trying to run the conditional nothing happens.
I've tried two conditional formats, no syntax errors occur but it still doesn't output the result of the conditional.

{xen:if '{$user.userid} == 407', "True"}
<xen:if is="{$user.userid} == 407">Also true</xen:if>


Well-known member
Woops... how did I make such a silly mistake. I read the variable as user_id too... damnit.

Thanks Jake!