{% if request.user.is_authenticated %}
yeah
{% else %}
nope
{% endif %}