Thanks for the replies!
I don't get it, why do you have an array for it if you can just use the TokenAt directly? You could use a for to check which levels have been cleared without a problem, I think.
In my case I need to check if every level has already been cleared, so the player can be awarded an achievment..
In any case, let's say I used an array to sort the variable. Still, how do I check that every item in the array is "1"?
edit: I found a way to do it that's really simple, just not very pretty. I can manually compare the variable to "1,1,1,1,1,1,1,1,1,1,1,1", and if it is, the player is awarded the achievment.
That bad part is that if I ever add more level, I'll have to change this.