Use conditional statements to control the flow and output of your templates based on conditions:

1function MyFunc(user: User) -> string {
2 prompt #"
3 {% if user.is_active %}
4 Welcome back, {{ user.name }}!
5 {% else %}
6 Please activate your account.
7 {% endif %}
8 "#
9}