Set Variable (local) not working


#1

Problem:
When Set Variable is called, the variable remains as the default value and does not change.

Snapshot:

Logs: (the relevant parts)

|+388ms|║║Condition group #10 evaluated true (state did not change) (9ms)|
|---|---|
|+389ms|║║Cancelling statement #12's schedules...|
|+394ms|║║Executed virtual command setVariable (1ms)|
|+397ms|║║Cancelling statement #14's schedules...|
|+484ms|║║Executed physical command [Entry].on() (83ms)|
|+485ms|║║Executed [Entry].on (85ms)|

I checked the logs. The variable is not getting reset anywhere that I can tell. It just simply isn’t changing to begin with.


#2

Whenever we hard code a variable up top in the “define” section, then that data is forced each time the piston runs.

I typically leave the “define” section (no value set)… and then later on (in the “execute” section), I set (or reset) the variable precisely as I want.


#3

Thank you!