conditionally displayed text: field-name exists vs field-name equals something
The help page at https://help.catalytic.com/docs/field-conditions/ states "In task instruction fields and the body of emails, you can set text to display conditionally based on the value of a field."
However, the example given states:
IF: Defining a condition for text to appear only if a field value DOES exist:
{{#if field-name}}
This is the text will only display if field-name DOES exist
{{/if}}
My question is, what is the syntax (if it can be done) for when the field-name EQUALS a certain value? The examples given on the help page only are for when the field exists. I know I can use Field Formulas, but for a one-time deal in an email body, I'd rather just use the if statements and avoid adding a Step/Action just for one thing.
Would it be
{{#if field-name == "A"}}
This is the text will only display if field-name DOES exist
{{/if}}
Thanks!
Answers
-
Hi Kevin,
You can only use the
if
helper to conditionally render a block if the value is empty or not. I submitted an Idea for makingif
helper easy to use and I recommend upvoting it in the link below.Easy to use conditional text display
https://community.pushbot.com/discussion/789/You can use a Field Formula to set up a new field to output a value or no value based on the input value.
Field: Field Formulas
https://help.catalytic.com/docs/field-field-formulas/Conditionally display text in instructions or emails (
if
helper)
https://help.catalytic.com/docs/conditionally-display-text-in-instructions-or-emails/0