I've got a subflow that I'm reusing multiple times. I want to access flow/global variables that are created/modified by the subflow. I've successfully created the flow/global variable by using this code in the subflow.
(As you can see, the global variable for each unique subflow is set by $$.topic)
How would I go about checking the status (true/false) of that flow/global variable in a subflow. I cant seem to figure it out, on a per topic basis (so it can live in the subflow nicely)?
Why not just pass the value to the subflow in the msg? Just before going to the subflow node, add a change node to set msg.???? to the value you want and then in the subflow just get it from the msg.
If it needed updating in the subflow, add a change node just after the subflow to store the value back into the context variable.