Arrays are set and read with variableName[index] You don’t need a period before the brackets. The index can be a number or variable or any expression that returns a number.
Example: This uses mod() to allow the index to loop back to 0.
I can’t believe i am abusing variables for over a year left and right and this was not obvious to me
I was able to figure out mod/switch part of it
I was not able to figure out how to display current child value by index number instead of straight up declaring it
Documentation is tragic when it comes to examples
It explains the idea but do not give you enough practical examples to understand it
Even mod expression its perfect example even so most of them are guilty of same sin
I know how mod works and how to use it
But please tell me what i am supposed to understand from this description?