switch expr { CASE label: .... } should work for NS 4.x and above according to my "Pure JavaScript." Bob Filipiak (Contractor) -----Original Message----- From: Esther_Strom at hmco.com [mailto:Esther_Strom at hmco.com] Sent: Monday, October 29, 2001 3:00 PM To: javascript at LaTech.edu Subject: [Javascript] select-case construct (amended) 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 _______________________________________________ Javascript mailing list Javascript at LaTech.edu http://www.LaTech.edu/mailman/listinfo/javascript -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.evolt.org/pipermail/javascript/attachments/20011029/81c9bd79/attachment.htm>