Switch versus if/then/else ( was: Main menu puzzle, Klaus)

Geoff Canyon gcanyon at inspiredlogic.com
Mon Feb 20 00:00:55 EST 2006


I wasn't suggesting this as a recommendation for beginners -- just as  
a clearer more efficient way to solve the problem as stated. Neither  
a case statement nor an if/then can clearly represent 50 choices.

On Feb 19, 2006, at 6:03 PM, Judy Perry wrote:

> And, a non/novice-programmer would simply close Rev and launch
> PowerPoint...
>
> Judy
>
> On Sun, 19 Feb 2006, Geoff Canyon wrote:
>
>> Just to beat on the horse some more, given the above problem
>> statement, I would likely store the names of the fifty handlers in a
>> custom property, and do the following:
>>
>> do (line myParameter of the uHandlerList of this cd)
>



More information about the use-livecode mailing list