Select Case for Javascript?

Results 1 to 2 of 2

Thread: Select Case for Javascript?

  1. #1
    Join Date
    Dec 1969

    Default Select Case for Javascript?

    Is there a function like the select case function in vb for javascript? if so, what is the syntax?<BR><BR>thanks

  2. #2
    Join Date
    Dec 1969

    Default Switch

    switch(varname) {<BR>case "somechar":<BR>SomeFunction();<BR>break<BR>cas e "someotherchar":<BR>SomeOtherFunction();<BR>break< BR>default<BR>DefaultFunction();<BR><BR>}<BR><BR>T he colon is required, the quotes are for strings omit them if comparing numbers

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts