Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 15 JAN 2007 11:38:01PM Chang Lee Churn wrote:

SUBROUTINE RAP

BOC=Z"
BEGIN CASE
   CASE BOC=A"
     CALL MSG("BOC IS RIGHT",'','','')
   DEFAULT:
     CALL MSG("%1% is mine",'','',BOC)
END CASE

RETURN


At 15 JAN 2007 11:51PM Chang Lee Churn wrote:

Is there an END ELSE statement equivalent in CASE statements?

which I can replace the DEFAULT: statement in the above?

The CASE statement is just a simple one to explain the situation.

Please advise.


At 16 JAN 2007 02:02AM Warren Auyong wrote:

Replace the label DEFAULT: with CASE 1


At 16 JAN 2007 02:59AM Chang Lee Churn wrote:

It's possible to replace with CASE 2 , CASE 3 as well right?

what is basically meant was when CASE is not alphabets, it will

execute the statements in CASE 1 correct?


At 16 JAN 2007 03:12AM Simon G Wilmot wrote:

No !!

Case statements are executed as If then else statements.

In the Case 1 situation, 1 is the logical Otherwise$

So ..

Begin Case

 Case a=1
  • Process for a=1
 Case a=qq'
  • Process for a=qq'
 Case a=1w2e3f'
  • Process for a=1w2e3f
 Case 1
  • Process for all other possibilities of a

End Case

Hope this helps,

Simon


At 16 JAN 2007 03:28AM Chang Lee Churn wrote:

thanks. Simon and Warren.


At 19 JAN 2007 09:47AM Victor Engel wrote:

What follows the CASE statement is an expression that evaluates to TRUE or FALSE. In Arev, 2, 3, and any number other than 0 evaluate to TRUE.

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/9d0c1c5f185d4a44852572650019741d.txt
  • Last modified: 2023/12/28 07:39
  • by 127.0.0.1