/
For Loop Example 3
For Loop Example 3
fruit = "Cranberry|Grape|Grapefruit|Kiwifruit|Lemon|Lime|Mango|Orange";
for(int x = 0; x < size(fruit); x++) {
runnerLog(fruit[x]);
}
Sometimes you need to know what number (index) you are on while looping through an array.
In those cases you would use this method.
Peacock
, multiple selections available,
Related content
For Loop Example 1
For Loop Example 1
More like this
For Loop Example 2
For Loop Example 2
More like this
For Loop
For Loop
More like this
How to work with arrays
How to work with arrays
More like this
How to work with statements
How to work with statements
More like this
arrayGetElement
arrayGetElement
More like this