>From the top of my head ...
select. T
 case.  T0 do. B0
 case.  T1 do. B1
 case.     do. B3
end.

I really hope I got it right. :P

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Matthew Brand
Sent: Monday, July 20, 2009 4:15 PM
To: Programming forum
Subject: [Jprogramming] Default case for select.

Is there a way to specify a default case in select?


i.e. I want: if. -. T0 *. T1 do. B3 end.

I tried something like this, but it did not work:

select. T
 case.  T0 do. B0
 case.  T1 do. B1
else.
 B3
end.

Thanks,
Matthew.
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to