{% if users_array contains "John" %} Hey, John is logged in! {% endif %}
where users_array is something like: ["Jeff" "John" "Dave" ...]