Show if logged in

Hey anybody know the code to show if a customer is logged in? I want to hide an element until they log in like:



{if $loggenIn !== 'true'}

Test

{/if}

I found the answer:





{if $auth.user_id}

[color=#282828][font=arial, verdana, tahoma, sans-serif]

Test
[/font][/color]

[color=#282828][font=arial, verdana, tahoma, sans-serif]{/if}[/font][/color]