RosettaCodeData/Task/Loops-Nested/Icon/loops-nested-2.icon

5 lines
215 B
Plaintext

every x := L[i := 1 to *L,1 to *L[i]] do
if x = 20 then break write("L[",i,",",j,"]=20") # more succinctly
every if !!L = 20 then break write("Found !!L=20") # even more so (but looses the values of i and j