[Javascript] select-case construct (amended)

Esther_Strom at hmco.com Esther_Strom at hmco.com
Mon Oct 29 13:59:51 CST 2001


Forgot to mention...this needs to work in NS4.7 for PC and Mac.

Thanks.
----- Forwarded by Esther Strom/McDougal/hmco on 10/29/01 01:58 PM -----
                                                                                                                   
                    Esther Strom                                                                                   
                                         To:     javascript at LaTech.edu                                             
                    10/29/01             cc:                                                                       
                    01:58 PM             Subject:     select-case construct                                        
                                                                                                                   
                                                                                                                   



I'm sure this has been mentioned before, but I can't find the message or an
example in any of my books. Can you use a select-case construct in
javascript?

Pseudocode example:

select case prodStatus

Case "New"
//do this

Case "In Progress"
//do this

Case else
//do this

End select

Thanks for any help available.

Esther





More information about the Javascript mailing list