How to know {{#if currentUser}} is NOT logged in?

Im new to Meteor, and i would appreciate some help!

Bonus: Can you recommend any tutorials?

I love Meteor so far, keep it up

https://www.discovermeteor.com/ - worth your $ (I’m not affiliated in any way)

if I understand your question correctly, you’d wanna do something like this:

{{#if currentUser}} 
<span>Hey {{currentUser.profile.firstName}}!</span>
{{else}}
<span>nobody's home</span>
{{/if}}

That would solve my problem! Thank you :smile:

Is something similar to this possible though?

{{#if !currentUser}}
Not logged in
{{/if}}

{{#unless currentUser}}
Not logged in
{{/unless}}

Thank you a lot! :smile: