Which one is faster ?

Klaus Major klaus at major-k.de
Wed May 18 11:38:43 EDT 2005


Hi JB,

> Hi list,
>
> Which option is faster : switch staements or nested if-then-else ?
>
> Has anyone run tests on this ?

No, but i can say that "switch" statements are FAR more readable than
nested "if...then" statements, especially if the scripter uses the  
(for me) strange

if condition then do this
else do that

format WITHOUT a final "end if"... ;-)

> Thanks,
> JB

Regards

Klaus Major
klaus at major-k.de
http://www.major-k.de



More information about the use-livecode mailing list