while condition1 do while condition2 do if condition3 then quitloop(2); endif; endwhile; endwhile;