Bernie,
Try the following.  Note Switch requires that .variable be within parenthesis.  
Also, note inserted BREAK

 Switch (.A)
   case value
     Switch (.B)
       case value
        BREAK
       default
        BREAK
     endsw -- .B
    BREAK 
  case value
   BREAK
  default
   BREAK
 endsw  -- .A

Jim Bentley
American Celiac Society
[EMAIL PROTECTED]
tel: 1-504-737-3293


--- On Mon, 8/25/08, Bernard Lis <[EMAIL PROTECTED]> wrote:

> From: Bernard Lis <[EMAIL PROTECTED]>
> Subject: [RBASE-L] - Switch within Switch
> To: "RBASE-L Mailing List" <[email protected]>
> Date: Monday, August 25, 2008, 9:10 PM
> Can you program and watch the democratic convention at the
> same time?
> 
> I am having a problem that I think is losing the switch
> variable if I have a 
> switch within a switch, i.e.:
> 
> Switch .A
>   case
>     Switch .B
>       case
>       default
>     endsw
>     case
>     default
> endsw
> 
> Is this legal?
> I seem to be losing the value of A
> 
> Bernie Lis


      


Reply via email to