If Statements: Authentication Directives

@auth
    // The user is authenticated...
@endauth

@guest
    // The user is not authenticated...
@endguest
@auth('admin')
    // The user is authenticated...
@endauth

@guest('admin')
    // The user is not authenticated...
@endguest

If Statements: Authentication Directives — Structure map

Clickable & Draggable!

If Statements: Authentication Directives — Related pages: