Forum Discussion

niiiiiiiiiik's avatar
9 years ago

If logged in, print screen name

Hey Folks,   I am after a simple snippet of code but don't know how to write it :(   What I am looking for is...    if user is anonymous, have text display as "Welcome to the community" otherw...
  • VarunGrazitti's avatar
    9 years ago

    niiiiiiiiiik - Here it is, lmk if this is what you need.

     

    <#if user.anonymous>
            Welcome to the community
    <#else>
             Welcome ${user.login}
    </#if>