How to add conditional if is guest

  • Hello,

    I disabled replying on articles for guests so that only logged in users can reply, but I want to show a text near the reply box with the conditional if it is guest, show SOMETHING, so that the guest would know he should register.

    For example in my website https://pythonlearner.ir/article/7, you see there are 6 replies. In the left side of H2 title replies, I want to add a text.

    How may I use this?

    I did not find proper documents to see the conditionals.

    I also found I should add this conditional in templates/article.tpl if I'm correct.


    Thanks in advance