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


#1

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

Bonus: Can you recommend any tutorials?

I love Meteor so far, keep it up


#2

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}}

#3

That would solve my problem! Thank you :smile:

Is something similar to this possible though?

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


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

#5

Thank you a lot! :smile: