Jump to content

Conditional structures: Difference between revisions

m
→‎SELECT--WHEN/OTHERWISE: changed REXX variable from '''a''' --> '''g'''. -- ~~~~
m (→‎SELECT--WHEN/OTHERWISE: changed REXX variable from '''a''' --> '''g'''. -- ~~~~)
Line 2,802:
===SELECT--WHEN/OTHERWISE===
<lang rexx> select
when ag=='angel' then many='host'
when ag=='ass' | ag=='donkey' then many='pace'
when ag=='crocodile' then many='bask'
when ag=='crow' then many='murder'
when ag=='lark' then many='ascension'
when ag=='quail' then many='bevy'
when ag=='wolf' then many='pack'
otherwise say
say '*** error! ***'
say ag "isn't one of the known thingys."
say
exit 13
Cookies help us deliver our services. By using our services, you agree to our use of cookies.