[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] How to exit loops?

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 (


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?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]