harleyobrien

avatar

harleyobrien

1 Projects   ●   5   ●    1  

No projects found

There are no projects that fit your search criteria.

2021-06-17

I have a set of variables like var1, var2, var3.
When all variables have a value of 1, I want o set variable part1 to 1 or any other value.
I know that I could use a trigger everytime var# changes to 1 and check a condition if the other 2 vars are 1, then set part1 to 1, but it's not very efficient and gets messy if we add more variables to track.
Is there a way to constantly monitor the values of var1, var2 and var3 and when all are 1, set the new variable?
Thank you!
 

2170   0
   
 1    1