nested ifs

Chipp Walters chipp at chipp.com
Wed Jan 25 14:03:52 EST 2006



Stephen Barncard wrote:
> Why? If one uses the 'classic' full IF-THEN_ELSE-ENDIF with all KEYWORDS 
> on separate lines, it always works, and it is not ambiguous as with 
> dangling THENs.
> 
> We certainly don't have this kind of problem with CASE statements, do 
> we? They are what they are - there's a form, and one follows it - it's 
> an element of syntax!!
> 
> am I old-fashioned, dumb or what?

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




More information about the use-livecode mailing list