How about this
while [
it is true
] [
catch [
if condition1 [
do something
throw
]
if condition2 [
do it too
throw
]
do something else
]
]
or just use switch as it is mostly suitable.
AR
Anton
Hi Charles,
On Friday, August 02, 2002, 4:24:21 AM, you wrote:
C either condition? [
C if true do this
C ][
C if false
C do these
C next 20 lines
C all indented
C with more indentation
C yet to come
C very long lines
C ]
Is really indentation such a big problem?
Hi Charles,
Using ; as an example for comment lines, but writing a COMMENT? function
might be a good idea.
b: [ data ;Comment data 2 data 3]
== [ data ;Comment data 2 data 3]
foreach item b [
[if all [(not empty? item) (#; item/1)][
[print item
[]
[]
Is really indentation such a big problem?
Yeah, for me, anyways. Further down, I'm nested some 6 times, and that's
leaving a ton of white space and extraneous scrolling past the edge. For
readability, I always indent whenever a new block is opened.
Anyway, I think you could do something
A trick I've used for continue is
to break out of a loop, like this:
for ... [
loop [
if condition [break] ; simulate continue
; other code
]
]
Anton.
Howdy folks. Got a bit of a difficulty
Whoops, I missed an argument to 'loop:
for ... [
loop 1 [ ; only once
if condition [break]
; other code
]
]
Anton.
--
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with