Compaq AA-Q88CE-TE manual Table A-3 Arithmetic Operators in Display Commands

Models: AA-Q88CE-TE

1 320
Download 320 pages 38.47 Kb
Page 262
Image 262

Creating Monitor Pictures

A.3 Arithmetic Expressions and Operators

Table A–3 Arithmetic Operators in Display Commands

Characters

Meaning

 

 

-

Minus

+

Plus

*

Multiply

/

Divide

&

Logical AND

Logical OR

<=

Less than or equal

>=

Greater than or equal

!=

Not equal

<>

Not equal

<

Less than

>

Greater than

=

Equal

 

 

Example A–2 shows how these operators are used.

Example A–2 Arithmetic Operators Examples

RTR> DISPLAY NUMERIC

RTR_SOME_DATA_ITEM+2

1

RTR> MONITOR

 

 

RTR>

DISPLAY NUMERIC

RTR_SOME_DATA_ITEM

 

_RTR> /SELECT="RTR_SOME_OTHER_DATA_ITEM>42"

2

RTR>

MONITOR

 

 

RTR> DISPLAY NUMERIC RTR_SOME_DATA_ITEM

_RTR> /SELECT="RTR_SOME_OTHER_DATA_ITEM>42" - _RTR> /BOLD="RTR_SOME_OTHER_DATA_ITEM>84" -

_RTR> /UNDERLINE="RTR_SOME_OTHER_DATA_ITEM>=1952" 3

RTR> MONITOR

RTR> DISPLAY SYMBOLIC RTR_SOME_DATA_ITEM "zero","one" -

_RTR> "two","three","four,"five","six"/BLINK

4

1Two is added to the value of RTR_SOME_DATA_ITEM before displaying it.

2RTR_SOME_DATA ITEM is only displayed if RTR_SOME_OTHER_DATA_ ITEM is greater than 42.

3Same as the one above, but displayed in bold if RTR_SOME_OTHER_DATA_ ITEM is greater than 84, and underlined if its greater than 1952.

4The value of RTR_SOME_DATA_ITEM is displayed in text form if it is less than six, otherwise it is displayed as a numeric.

A–4Creating Monitor Pictures

Page 262
Image 262
Compaq AA-Q88CE-TE manual Table A-3 Arithmetic Operators in Display Commands, Example A-2 Arithmetic Operators Examples