CASE statements (AREV Specific)
At 15 JAN 2007 11:38:01PM Chang Lee Churn wrote:
SUBROUTINE RAP
BOC=Z"BEGIN CASECASE BOC=A"CALL MSG("BOC IS RIGHT",'','','')DEFAULT:CALL MSG("%1% is mine",'','',BOC)END CASERETURN
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=1Case a=qq'
Process for a=qq'Case a=1w2e3f'
Process for a=1w2e3fCase 1
Process for all other possibilities of aEnd 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.