Hey!
{{#eq gender "female"}}
Hello, madam. Thank you for writing to us.
{{/eq}}
{{#eq gender "male"}}
Hello, sir. Thank you for writing to us.
{{/eq}}
Hey!
{{#eq gender "female"}}
Hello, madam. Thank you for writing to us.
{{else}}
Hello, sir. Thank you for writing to us.
{{/eq}}
{{#lt age 16}}
Unfortunately, the bot cannot be used by children under 16
{{/lt}}
{{#gt age 15}}
{{else}}
Unfortunately, the bot cannot be used by children under 16
{{/gt}}
{{#gte age 16}}
Wow! Welcome, you are so many years old!
{{else}}
Unfortunately, you are not yet 16 years old
{{/gte}}
{{#gte age 16}}
Wow! Welcome!
{{#eq gender "female"}}You are so grown up, madam!{{else}}You are so grown up, sir!{{/eq}}
{{else}}
Unfortunately, you are not yet 16 years old
{{/gte}}
{{#eq variable1 variable2}}
If the variables are equal
{{else}}
Optional text if the variables are not equal
{{/eq}}
{{#lt variable1 variable2}}
If the first variable is less
{{else}}
Optional text if the second variable is less
{{/lt}}
{{#gt variable1 variable2}}
If the first variable is greater
{{else}}
Optional text if the second variable is greater
{{/gt}}
{{#if variable}}
If the variable exists and it isn't an empty string — "", or 0, or false, or null, this text will be visible
{{else}}
Optional text, for the opposite condition
{{/if}}
{{#lte age 16}}
Unfortunately, the bot cannot be used by children under 16
{{/lte}}
{{#gte age 16}}
Wow! Welcome, you are so many years old!
{{/gte}}