-
Suggestion
-
Resolution: Unresolved
Issue Summary
According to the article conditional-logic/#or, it is currently possible to check for two conditions using the 'OR' or 'AND' condition logic, however, it is not possible to check for more than two conditions.
Steps to Reproduce
- Create an Automation rule
- Specify below conditional smart value
{{#if(or(smartValue1, smartValue2, smartValue3))}} returned value {{/}}
- Check audit log
Expected Results
If any one of the smartValue1, or smartValue2 or smartValue3 return true, it should return true.
Actual Results
The evaluation process is skipped and nothing is done.
Workaround
1. Specify like below:
{{#if(smartValue1)}} returned value {{/}} {{#if(smartValue2)}} returned value {{/}} {{#if(smartValue3)}} returned value {{/}} {{#if(smartValue4)}} returned value {{/}}
—
2. Use if/else conditional block
Greetings!
There is a better workaround using nested and() or or() functions, making the rule easier to maintain and reducing the risk of errors (from misaligned "return value" expressions).
For example:
{{#if(or(smartValue1, or(smartValue2, smartValue3)))}} returned value {{/}}
Kind regards,
Bill