MPE/iX Commands Reference Manual (32650-90877)

178 Chapter5
Command List III
Commands DATA thru EXIT
!CONTINUE
!PASXL MYPROG,MYUSL
!IF JCW>=FATAL THEN
! TELL USER.TECHPUBS;COMPILE FAILED
!ELSEIF JCW>=WARN THEN
! TELL USER.TECHPUBS;COMPILE COMPLETED WITH WARNINGS
!ELSE
! TELL USER.TECHPUBS;COMPILE COMPLETE WITH NO WARNINGS
!ENDIF
Related Information
Commands DELETEVAR, ELSEIF, ENDIF, IF, SETJCW, SETVAR, SHOWJCW, SHOWVAR
Manuals None
ELSEIF
Provides an alternate execution sequence within an IF statement. Native Mode
Syntax
ELSEIF
expression
[THEN]
Parameters
expression
Logical expression, consisting of operands and relational operators. The
THEN keyword is optional. It may be used or omitted and has no effect on
the results. The operators listed in Table 5-6. on page 178 may be
incorporated in
expression
.
Operation Notes
The ELSEIF command is used only in conjunction with the IF command. The ELSEIF
command provides a way of avoiding nested IF statements. ELSEIF has meaning only
when used after an IF construct.
Table 5-6. Logical Operators - The ELSEIF Command
Logical operators: AND, OR, XOR, NOT
Boolean functions and values: BOUND, TRUE, FALSE, ALPHA, ALPHANUM, NUMERIC,
ODD
Comparison operators: =, <>, <, >, <=, >=
Bit manipulation operators: LSL, LSR, CSR, CSL, BAND, BOR, BXOR, BNOT
Arithmetic operators: MOD, ABS, * , / , + , -, ^ (exponentiation)
Functions returning strings: CHR, DWNS, UPS, HEX, OCTAL, INPUT, LFT, RHT, RPT,
LTRIM, RTRIM, STR
Functions returning integers: ABS, LEN, MAX, MIN, ORD, POS, TYPEOF
Other functions: FINFO, SETVAR