If not true (!true) February 20, 2023 by Tarik Use the function not: {{ if not .loggedIn }} <h1>Not logged in</h1> {{ end }}