while foo = arr[i]
do
(i := i + 1;
when i > 10
do
(break))