HP 3000 Manuals

SET [ HP Pascal/iX Reference Manual ] MPE/iX 5.0 Documentation


HP Pascal/iX Reference Manual

SET 

SET is an HP Pascal Option.

The SET compiler option assigns a Boolean value (TRUE or FALSE) to each
of one or more identifiers that appear in subsequent IF options.

Syntax 

$SET identifier=Boolean [{,} identifier=Boolean]'$
                        [{;}                   ]
Parameters 

identifier    Appears in an IF option later in the program.  The
              identifier cannot be AND, OR, or NOT.

Boolean       The value TRUE or FALSE (the compiler is not
              case-sensitive).

Default       Not applicable.

Location      Anywhere.

Example 

The following two program fragments are equivalent:

     {Fragment 1}
     $SET 'group1=true, group2=false'$
        .
        .
        .
     $IF 'group1 AND (NOT group2)'$

[source_line]
[ .         ]
[ .         ]
[ .         ]
     $ENDIF$

     {Fragment 2}
     $SET 'group1 = true'$
     $SET 'group2 = false'$
        .
        .
        .
     $IF 'group1'$
        $IF 'NOT group2'$

 [source_line]
 [ .         ]
 [ .         ]
 [ .         ]

        $ENDIF$
     $ENDIF$



MPE/iX 5.0 Documentation