[thelist] Switch statement
Joel Canfield
joel at spinhead.com
Fri Jul 19 08:56:01 CDT 2002
--
[ Picked text/plain from multipart/alternative ]
> > Break is needed, not
> > only in JavaScript but other languages as well.
>
> Well, not in VBscript :)) And maybe that's why I'm a little
> bit confused...
Right. But aren't you comparing 'switch' to VBScript's 'case' ? In 'case' it
will execute the code for only the matching case; but switch is a more
powerful tool (I'm startin' to like this PHP stuff.) It allows you the
choice to execute any or all cases, only exiting the group of cases when you
choose to.
joel
More information about the thelist
mailing list