count the number of variables with set value

sherman shared this problem 2 years ago
Not a Problem


I have a few variables in my prototype that sets it from "x" to "y" on certain conditions. How can I calculate the total number of "x"s or "y"s on pageload?

Comments (1)


Dear Sherman,

You should create another variable - count - and add an "OnPageLoad" -> "Set Value" event for each of the variables you have. At each SetValue, you should add a +1 depending if it is X or Y.