ok, I don't see which command could help me? I think there is also a little misunderstanding.
I'll explain what I need:
I have a text box which shows the actual e.g. research level. When you click the spirit, it goes to the next "level". Of course somewhen there is no next level and then "undefined" appears. This is not nice
I want to add a compare value in it, which says you can go to the next level until there is no one, which stops adding a additional level.
so something like that. compare level <= json maximum of this database. I don't want to add manually a global variable, which says this database has 4 Levels. C2 should do this automatically for me