Switch versus if/then/else ( was: Main menu puzzle, Klaus)
jperryl at ecs.fullerton.edu
Sun Feb 19 13:37:36 EST 2006
Right, again, my argument was less "IF-THENs rule and CASE-SWITCHes suck"
than IF-THENs are easier to read/learn/are more transparent for
On Sun, 19 Feb 2006, Mark Wieder wrote:
> Your example isn't a reasonable candidate for a switch/case construct
> because the conditionals aren't at the same level. Instead your ifs
> are nested within each other, and that's an example of where and
> if/then/else construct is much more readable. There's no reason to
> convert that.
More information about the Use-livecode