|
From: | Canol Gokel |
Subject: | [Help-smalltalk] How to exit loops? |
Date: | Sun, 22 Jun 2008 16:24:21 +0000 (UTC) |
User-agent: | Loom/3.14 (http://gmane.org/) |
Hello, Is there a way to exit loops if a condition is met? For example: 1 to: 10 do: [:x | x = 3 ifTrue: [ ... ] ] What should I write instead of three dots to exit the loop if x is equal to 3?
[Prev in Thread] | Current Thread | [Next in Thread] |