83
Division/Divide (/) Operator
The divide operator is valid only for numerical values and Variables. Use this operator to divide one
numerical value by another. The resultant type is an integer value. If the denominator is 0, then the
operation evaluates to 0.
For example:
This expression...
... resolves to this value.
10/3
3
10/2
5
10/0
0
Equal Comparison (==) Operator
The equal comparison operator will compare two tokens, which can be strings or integers. The
expression will return 1 if the two tokens are equivalent, and 0 if they are not.
String values can be compared against wildcard values, e.g.
“Hello*”
.
For example, assuming
MyNumber
has an integer value of
4
, and
MyName
has a string value of
“John”
:
This expression...
... resolves to this value.
MyNumber==4
1
MyNumber==“4”
1
MyNumber==5
0
MyName==“John”
1
MyName==“J*”
1
0==“John”
1
Not-Equal Comparison (!=) Operator
The not-equal comparison operator will compare two tokens, which can be strings or integers. Exactly
opposite to the equal comparison operator, the expression will return 0 if the two tokens are equivalent,
and 1 if they are NOT equal.
String values can be compared against wildcard values, e.g.
“Hello*”
.
For example, assuming
MyNumber
has an integer value of
4
, and
MyName
has a string value of
“John”
:
This expression...
... resolves to this value.