Greetings, I am in need of a way to go to the end of a do loop.
myCollection do: [ :item | (blah blah) ifTrue: “we found an item of the first type” next item. (blah blah) ifTrue: “we found an item of the second type” next item. (blah blah) ifTrue: “we found an item of the third type” next item. (blah blah) ifTrue: “we found an item of the fourth type” next item. (blah blah) ifTrue: “we found an item of the fifth type” ]. Some other languages have “break” or “next” or “goto LABEL” to skip the processing of the rest of the loop in case the item is found in the first test. How do I implement this in Squeak? Sincerely, Joe. PS. This is not a homework project. _______________________________________________ Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners