|
Re: CASE statments [message #4477 is a reply to message #4470] |
Tue, 20 June 1995 00:00  |
rep2857
Messages: 28 Registered: December 1994
|
Junior Member |
|
|
Cc'd to wart@dice.ugcs.caltech.edu
In article <3s7iea$t60@gap.cco.caltech.edu>,
Wart <wart@dice.ugcs.caltech.edu> wrote:
> Is there any way to associate more than one tag with a set of
> instructions: Something like
>
> CASE event.id OF
>
> red_text: BEGIN
> ; do lots of stuff here
> END
...
> CASE event.id OF
>
> red_text: grn_text: blu_text: BEGIN
> ; do lots of stuff here
> END
> ENDCASE
Yup. Here you go:
Case 1 of
(Event.id eq red_text or $
Event.id eq grn_text or $
Event.id eq blu_text): begin
; stuff
end
Endcase
The "1" in the opening case line acts as a "true". The first statement
that evaluates to true/1 will be run.
Mike Schienle Hughes Santa Barbara Research Center
Home: mgs@seldon.terminus.com Coromar Drive, M/S B28/87
Work: rep2857@sbsun0010.sbrc.hac.com Goleta, CA 93117
Contract Employee. Will visualize data for large amounts of money.
|
|
|