RosettaCodeData/Task/Flow-control-structures/Icon/flow-control-structures-1.icon

10 lines
288 B
Plaintext

if x := every i := 1 to *container do { # * is the 'length' operator
if container[i] ~== y then
write("item ", i, " is not interesting")
else
break a
} then
write("found item ", x)
else
write("did not find an item")