Subtraction/Minus (-) Operator
The subtraction operator works with both numerical values and strings values. Use this operator with
strings to remove a sub-string from a source string, or use this operator to subtract two integer values.
For example:
This expression...
... resolves to this value.
6-2
4
“Hello”-”ll”
“Heo”
10-”3”
7
Multiplication/Times (*) Operator
This operator multiplies two numbers, or can be used for creating a string with a repeating value. The
numbers and strings can be either Variables or literals.
For example:
This expression...
... resolves to this value.
4*5
20
“Hello”*3
“HelloHelloHello”
3*”Hello”
0
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