nested ifs
Stephen Barncard
stephenREVOLUTION at barncard.com
Wed Jan 25 14:45:05 EST 2006
Chipp, I use that form all the time ("if it is empty then exit to
top") - I just had a problem regarding dangling THENs..
IF <condition> THEN
<command>
IF <condition> THEN
<command>
Does one execute after the other, or is the second executed only
after the first condition is met? THIS is not clear, so I tend to be
quite explicit or use a CASE statement. Kinda like using parentheses,
might as well give the compiler succinct instructions!
>
>It's a matter of preference I suppose. For me, "if it is empty then
>exit to top" is much easier to read than 3 lines taking up the same
>space.
>
>Thanks to Eric for Mark Waddingham's explanation. It helps to
>understand the why.
>
>-Chipp
--
stephen barncard
s a n f r a n c i s c o
- - - - - - - - - - - -
More information about the use-livecode
mailing list