---
title: "For Loop Example 2"
canonical: "https://support.appfire.com/space/PSCONF/15305436/For%20Loop%20Example%202"
format: markdown
---
> Macro (aura-html)

> Macro (excerpt)
> 
> ```
> 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.