I'm sure this is posted somewhere already, but I wasn't able to find it.
I'm confused how the scope of variables is handled in JSL. Could someone help to clarify how it works.
I almost always use i as the indexing variable for loops. For example, in my script I will have a for loop with i as the index that calls another function. In this function, there is another for loop with i as the index. This has never been a problem in C/Java/etc. It seems that sometimes it works in jsl and other times it doesn't. I don't have an example because I havn't been able to figure out exactly where the problem occurs. I think it is a basic understanding of the scope of variables in JSL though.