Accessing global variables in subflow?

After some research I found out, that you can access the parents flows variables in a subflow by using environmental variables in the subflow. Is that also possible for global variables?
Background:
I want to implement an alarms-system. These alarms can be triggered in different flows, so I save the alarm states for each alarm globally in an array.
Why the sublow?- Wanted to make the flow look cleaner- no technical background.

I just tested by setting a global var in a function node that is not in a subflow and was able to successfully access it from another function node that is in a subflow. It seems that global.set and global.get are not limited by being in a subflow.

1 Like

I guess I was overthinking the topic, should´ve tested first before posting :sweat_smile:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.