Upvote 1

count the number of variables with set value

Not a Problem sherman 6 years ago

Hi,


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?

Replies (1)
photo
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.


Best,

Leave a Comment
 
Attach a file