Specifications
Section 8. Processing and Math Instructions
8-3
X The X variable is the value that will be added to the
PrecisionVariable. It may or may not be a high precision variable, depending
upon whether it has been declared as such in a previous AddPrecise or
MovePrecise instruction.
AND
Used to perform a logical conjunction on two expressions.
Syntax
result = expr1 And expr2
Remarks
If, and only if, both expressions evaluate True, result is True. If either
expression evaluates False, result is False. The following table illustrates how
result is determined:
If expr1 is And expr2 is The result is
True True True
True False False
False True False
False False False
The And 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:
If bit in expr1 is And bit in expr2 is The result is
0 0 0
0 1 0
1 0 0
1 1 1
And Operator Example
The example assigns a value to Msg that depends on the value of variables A,
B, and C, assuming that no variable is a Null. If A = 10, B = 8, and C = 6,
both expressions evaluate True. Because both expressions are True, the And
expression is also True.
Dim A, B, C, Msg 'Declare variables.
A = 10: B = 8: C = 6 'Assign values.
If A > B And B > C Then 'Evaluate expressions.
Msg = True
Else
Msg = False
End If