85
For example, assuming
MyNumber
has an integer value of
4
:
This expression...
... resolves to this value.
MyNumber<5
1
MyNumber<4
0
MyNumber<3
0
Less Than or Equal Comparison (<=) Operator
The less-than or equal comparison operator will compare two tokens, which can be integers or strings
(assuming the string represents an integer value). The expression will return 1 if the first token has an
integer value smaller than or equal to the second and 0 if the second value is smaller.
For example, assuming
MyNumber
has an integer value of
4
:
This expression...
... resolves to this value.
MyNumber<=5
1
MyNumber<=4
1
MyNumber<=3
0
Logical-And (&&) Operator
Assume you have two Boolean (true/false) expressions,
Expression1
and
Expression2
, each
returning true (
1
) or false (
0
). The logical-and operator determines the true or false state of the complex
expression
Expression1&&Expression2
using the rules applying to a traditional logical AND
statement:
If
Expression1
is...
and
Expression2
is...
Expression1&&Expression2
resolves to...
True (1)
True (1)
True (1)
True (1)
False (0)
False (0)
False (0)
True (1)
False (0)
False (0)
False (0)
False (0)
In other words:
This expression...
... resolves to this value.