Programming Reference Manual
 
Syntax
 
^ * / \ Mod + - & < <= > >= = <>
 
Description
These operators are available for numbers n1 and n2 or strings s1 and s2. If any value in an expression is Null then the expression's value is Null. The order of operator evaluation is controlled by operator precedence.
 
Operator
Description
- n1 
Negate n1.
n1 ^ n2 
Raise n1 to the power of n2.
n1 * n2 
Multiply n1 by n2.
n1 / n2 
Divide n1 by n2.
n1 \ n2 
Divide the integer value of n1 by the integer value of n2.
n1 Mod n2 
Remainder of the integer value of n1 after dividing by the integer value of n2.
n1 + n2 
Add n1 to n2.
s1 + s2 
Concatenate s1 with s2.
n1 - n2 
Difference of n1 and n2.
s1 & s2 
Concatenate s1 with s2.
n1 < n2 
Return True if n1 is less than n2.
n1 <= n2 
Return True if n1 is less than or equal to n2.
n1 > n2 
Return True if n1 is greater than n2.
n1 >= n2 
Return True if n1 is greater than or equal to n2.
n1 = n2 
Return True if n1 is equal to n2.
n1 <> n2 
Return True if n1 is not equal to n2.
s1 < s2 
Return True if s1 is less than s2.
s1 <= s2 
Return True if s1 is less than or equal to s2.
s1 > s2 
Return True if s1 is greater than s2.
s1 >= s2 
Return True if s1 is greater than or equal to s2.
s1 = s2 
Return True if s1 is equal to s2.
s1 <> s2 
Return True if s1 is not equal to s2.
See Also
 
Example
 
Sub Main
N1 = 10
N2 = 3
S1$ = "asdfg"
S2$ = "hjkl"
Debug.Print -N1 '-10
Debug.Print N1 ^ N2 ' 1000
Debug.Print Not N1 '-11
Debug.Print N1 * N2 ' 30
Debug.Print N1 / N2 ' 3.3333333333333
Debug.Print N1 \ N2 ' 3
Debug.Print N1 Mod N2 ' 1
Debug.Print N1 + N2 ' 13
Debug.Print S1$ + S2$ '"asdfghjkl"
Debug.Print N1 - N2 ' 7
Debug.Print N1 & N2 '"103"
Debug.Print N1 < N2 'False
Debug.Print N1 <= N2 'False
Debug.Print N1 > N2 'True
Debug.Print N1 >= N2 'True
Debug.Print N1 = N2 'False
Debug.Print N1 <> N2 'True
Debug.Print S1$ < S2$ 'True
Debug.Print S1$ <= S2$ 'True
Debug.Print S1$ > S2$ 'False
Debug.Print S1$ >= S2$ 'False
Debug.Print S1$ = S2$ 'False
Debug.Print S1$ <> S2$ 'True
End Sub