Section 8. Processing and Math Instructions
8-19
Remarks
The following table illustrates how Result is determined:
If expr is
The result is
True
False
False
True
Null
Null
The NOT operator also inverts the bit values of any variable and sets the
corresponding bit in result according to the following truth table:
If bit in expr1 is
The result is
0
1
1
0
NOT Operator Example
The example sets the value of the variable Msg depending on the state of
Flag(1).
Dim A, B, C, Flag(8)
'Declare variables.
Public Msg
If NOT Flag(1) Then
'Evaluate expressions.
Msg = 10
Else
Msg = 100.
End If
Or
Used to perform a logical disjunction on two expressions.
Syntax
result = expr1 Or expr2
Remarks
If either or both expressions evaluate True, result is True. The following table
illustrates how result is determined:
If expr1 is
And expr2
The result
is
is is
True True
True
True False
True
False True
True
False False
False
The Or operator also performs a bit-wise comparison of identically positioned
bits in two numeric expressions and sets the corresponding bit in result
according to the following truth table:
Содержание CR5000
Страница 39: ...Section 1 Installation and Maintenance 1 15 S A N Y O FIGURE 1 11 6 Removal of band clamp and battery ...
Страница 40: ...Section 1 Installation and Maintenance 1 16 This is a blank page ...
Страница 54: ...Section 2 Data Storage and Retrieval 2 14 This is a blank page ...
Страница 88: ...Section 4 CRBasic Native Language Programming 4 12 This is a blank page ...
Страница 94: ...Section 5 Program Declarations 5 6 This is a blank page ...
Страница 172: ...Section 7 Measurement Instructions 7 46 This is a blank page ...
Страница 206: ......
Страница 236: ...Index Index 4 This is a blank page ...
Страница 237: ...This is a blank page ...