5 Replies
its saying my indexes are incorrect when setting the string topping and string price line
this is the toppingsArray in question

each new line is a separate item
and my count variable is declared as 0 before the loop starts
You did
<=
, not <
But why are you even accessing the array?
Foreach just gives you each element, one at a timechanged to a while loop
thanks