Skip to end of banner
Go to start of banner

For Loop Example 2

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

string [] fruit = "Apple|Apricot|Avocado|Banana|Blackberry|Blueberry|Cherry|Coconut";

for(string f in fruit) {
    runnerLog(f);
}

Use this method when looping through arrays and you don't need to know the index position.

  • No labels