Conditional #if is the user is logged in | Community
Skip to main content

Conditional #if is the user is logged in

  • July 30, 2018
  • 2 replies
  • 0 views

I can't find the code.

What I need is insert a link only if the user is not logged in.

If someone can help me.

Thanks.

This topic has been closed for replies.

2 replies

Trapta
  • July 31, 2018

Hi Juliano,

You can use the below code to achieve it -

{{#if signed_in}}
{{else}}
<a href="URL">TEXT</a>
{{/if}}

Replace the URL and TEXT with your URL and TEXT. Let me know if you face any issue.

Thanks

Team Diziana


  • Author
  • July 31, 2018

Hi Trapta, this is exactly what I was looking for, thank you!