How to change a variable when ALL variables from a group change921 0 1
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?
Comments( 0 )
Answers ( 1 )
It sounds like you are wanting every page to be checking with all 3 variables are set to one and then set a new variable. One way to do this would be to add an action to the header or footer for a page. In that action have it set the new variable and then under conditions include the additional variables and set them as a condition that all of those (use the &&) are met.