How to exit nested for each loop

You could use “exit for i” to get out of the first for loop:

For i = 0 to 255 For j = 0 to 255 If myArray(i, j) = 23 then Exit For i End if Next Next

But how to do it here:

dim text() as text For each line as text in lines For j = 0 to 255 If myArray(i, j) = 23 then Exit For ???????????? End if Next Next

Exit for each results in syntax error

Exit for line

Argh, that was the version I didn’t tried :wink: Thanks…