Conditionals

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

function MyFunc(user: User) -> string {
prompt #"
{% if user.is_active %}
Welcome back, {{ user.name }}!
{% else %}
Please activate your account.
{% endif %}
"#
}