argh! cheers for that... was wondering how to do that previously I've
had to do a horrible hack along the lines of


case 'a':
    do thing X;
    break;
case 'b':
    do thing X;
    break;
case 'c':
    do thing X;
    break;
case 'd':
    do thing Y;
    break;


etc..... not very good coding :-( but all I could get to work at the
time....


thanks Patti :-)

-----Original Message-----
From: Patricia G. L. Hall [mailto:[EMAIL PROTECTED]
Sent: 20 October 2003 13:19
To: CF-Talk
Subject: RE: Nested <cfelse...

> cmiiw... watch out for cfscript tho.... as far as I am aware cfscript
> doesn't support the multiple case features (ver5) and you need one for
> each item in your list ie

yes it does.

switch (_expression_) {
  case 'a':
  case 'b':
     stuff that happens when either a or b is the value;
     break;
  case 'c':
     c stuff;
     break;
  default:
     stuff;
     break;
}

-Patti

  _____  


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to