Learn how to use if/else conditional logic in your workflow message templates
if
helper allows you to conditionally include content based on whether a value exists. You can add an {{else}}
step to return a different value when the if
check is empty/false.
0
) are considered false when evaluating an if
condition.lead.company_name
exists:
lead.company_name
is empty:
0
as true, use the optional includeZero
setting.
For example, if your if statement was {{#if 0 includeZero=true}}
, then a value of 0
would satisfy and trigger the value within the if
statement.
else
block for critical information