HP3000-L Archives

June 2001, Week 5

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Cappell, Curtis" <[log in to unmask]>
Reply To:
Cappell, Curtis
Date:
Fri, 29 Jun 2001 09:05:29 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (49 lines)
You may have just started a new offspring of the thread.  Consider your
original statement with one addition:

IF A > B
   DISPLAY "A > B"
   IF A > C
      DISPLAY "IF NO ELSE STMT"
   END-IF
ELSE
   IF A = B
      DISPLAY "A = B"
   ELSE
      DISPLAY "A < B"
   END-IF
END-IF.

The first END-IF is required otherwise the first ELSE would fall under the
"IF A > C".  Thus the need for a scope terminator for IF.
There is no such requirement for INSPECT.

Curt


>
> IF A > B
>    DISPLAY "A > B"
> ELSE
>    IF A = B
>       DISPLAY "A = B"
>    ELSE
>       DISPLAY "A < B"
>    END-IF
> END-IF.
>
> is the same as
>
> IF A > B
>    DISPLAY "A > B"
> ELSE
>    IF A = B
>       DISPLAY "A = B"
>    ELSE
>       DISPLAY "A < B".
>
> The END-IF scope terminator is not required for this

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2