XF 2.0 Conditional Statement

Haydric

Active member
I am curious on how I would check to make sure a Visitors user_id is equal to a threads user_id in the database using a conditional statement within a template.
 
<xf:if is="$xf.visitor.user_id == $thread.user_id">content</xf:if>
you can use {{ dump($thread.user_id) }} to make sure is the value is available in the template
 
Back
Top Bottom