Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
We've encountered an issue exporting this macro. Please try exporting this page again later.
Excerpt
Code Block
fruit = "Cranberry|Grape|Grapefruit|Kiwifruit|Lemon|Lime|Mango|Orange";

for(int x = 0; x < size(fruit); x++) {
    runnerLog(fruit[x]);
}
Info

Sometimes you need to know what number (index) you are on while looping through an array.
In those cases you would use this method.