ps I searched the web and found an answer to use switch or var. The switch funtion didn’t work as all the results were default (“untagged”) while the var function was confusing.
I see this is your first post so welcome to the forum!
For the CASE function you do indeed need to use the SWITCH function.
Als for always getting the default, this means you didn’t use a ‘break on case’ in your code.
The following URL explains it. http://www.developertutorials.com/learn … t-2599.php
As for loops you can use a FOR loop or a WHILE loop.
A VAR has nothing much to do with loops other than declaring a local variable to use in that loop.