How can I get the max amount of arrays set for a variable?
At the very top of the picture below I'm making a loop which will loop 3 times, but I've got a variable called Objectives[15][3] and I might be increasing the arrays for the second dimension later on and I don't want to go back and change the loop manually then, instead it would be easier if I could just define the amount of arrays that exist for that variable and dimension and make it loop that many times. Is it possible? If so, how?
You could make an integer variable and plug that into the loop value. That way, you'd only have to edit a single variable if you'll be using it in multiple triggers.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How can I get the max amount of arrays set for a variable?
At the very top of the picture below I'm making a loop which will loop 3 times, but I've got a variable called Objectives[15][3] and I might be increasing the arrays for the second dimension later on and I don't want to go back and change the loop manually then, instead it would be easier if I could just define the amount of arrays that exist for that variable and dimension and make it loop that many times. Is it possible? If so, how?
Thank you in advance!
You could make an integer variable and plug that into the loop value. That way, you'd only have to edit a single variable if you'll be using it in multiple triggers.