switch syntax flexibility

Hello

Is it possible in (future) version of Rhino, to get javascript syntax like:

	switch (sDestType) {   

	case "foo":
	         ... stuff
                break;
						
	case "this", "that":
	        ... other stuff 
	        break;						
	}

Say, now I don’t know how to make case “multi” working…

Reards, Jan

Hi Jan,

You can use the following syntax:

   switch (sDestType) {   

   case "foo":
            ... stuff
                break;
                  
   case "this":
   case "that":
           ... other stuff 
           break;                  
   }

( Now you know what the break is for ;) )

Hope this helps.