Give a description of the problem:
I would like to use a variable to store a device state at a given moment for use later on:
Define Variable boolean {Output State} = False
IF Output changes to on
Then:
DO:
Set variable {Output state} = True
What is the expected behavior?
I Would like the Variable to NOT change back to “False” if the Output is turned back off.
What is happening/not happening?
If the Output is turned off the variable state changes to false again
Should I use a number value instead of the Boolean True/False?
With my “no Programming” knowledge I find it counter intuitive that the State would change back to false as there is no code that describes (If Output changes to OFF - Set variable = false)
Hmmm…
Thank you for a great forum, I’m learning every day