Global Variable doesn't set instantly?


#1

1) Give a description of the problem
When setting a global variable, they don’t seem to set instantly.

2) What is the expected behavior?
I would expect global variables to be set to values instantly, this doesn’t seem to be the case.

3) What is happening/not happening?
I am using a global variable as a flag. When I set the global variable and then immediately call the piston that is using it as a condition, the piston does not see the condition as the expected value unless a wait is introduced AFTER the global variable is set to a different value.

**4) Post a Green Snapshot of the piston



#2

Instead for forcing the call to run a piston to read the global use the changes in the second piston to subscribe to the variable change. It works well I used it to trigger scenes:

image


#3

Ahhh, brilliant. Thanks!