HP 3000 Manuals

Not Equals ('<>') Relation in Conditional [ COMMUNICATOR 3000 XL, XL Release 1.1 (Core Software Release A.10.00) ] MPE/iX Communicators


COMMUNICATOR 3000 XL, XL Release 1.1 (Core Software Release A.10.00)

Not Equals ('<>') Relation in Conditional 

Provides Transact programmers with the ability to test for inequality
('<>') on multiple values in the condition clauses of the 'IF', 'WHILE',
and 'REPEAT' verbs.

Syntax 

     test-variable relational-operator value[,value]...

     where relational-operator is extended to include:

     <>

Parameters 

<>               Not equals.

Discussion 

This enhancement allows the relational-operator to be "<>" when more than
one value is given.  The action is taken if the test-variable is not
equal to value1 AND value2 AND ...  valuen.  In other words, a comma in a
series of values is interpreted as an AND when the relational-operator is
<>.

Example 

     1)  IF (STATE) <> "OR","CA","CO","VA" THEN ...

     2)  WHILE (PART-NO-PREFIX) <> (PROTOTYPE),(DEVELOPMENT)
              GET(CHAIN) PART-DETAIL,STATUS;


MPE/iX Communicators