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?



_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to