-
Bug
-
Resolution: Duplicate
-
Low
-
Severity 3 - Minor
Issue Summary
When a variable is created only inside IF/ELSE Block or in a Branch then the variable is not accessible anywhere in Automation apart from the Branch.
At the same time, if you create one Global Variable (after the trigger or before IF/ELSE block or branch) and then other variables created inside IF/ELSE Block or in a Branch will be accessible anywhere.
Steps to Reproduce
- Create a Automation,
- Add If/Else Block or other Branch , create variable inside If/Else block
- Add Log action within If/Else block to Print Variable created in If/else block. It works fine.
- Now Add Log action outside If/Else block to Print Variable created in If/else block. It doesn't work.
Expected Results
Variables should be accessible in all places in the rule.
Actual Results
Variable is not accessible.
Workaround
- Create Global Variable right after the trigger or before the IF/ELSE block or branch like below.
- Then all variables will be accessible.
- duplicates
-
AUTO-154 Automation: Ability to use variable outside of a block - variable is not updated on main branch if created inside an if/else or branch block
- Gathering Interest
- is related to
-
AUTO-154 Automation: Ability to use variable outside of a block - variable is not updated on main branch if created inside an if/else or branch block
- Gathering Interest