Basic30 Language Reference
Operators

Assignment Operators

=

Assign a value to a variable

Example:
a=10
a=b+22

+=

Add a value to a variable

Example:
a +=1
a +=c*d

-=

Subtract a value from a variable

Example:
a -=1
a -=c*d

*=

Multiply a variable by a value

Example:
a *=1
a *=c*d

/=

Divide a variable by a value

Example:
a /=1
a /=c*d

Arithmetic Operators

x + y Addition
x - y Subtraction
x * y Multiplication
x / y Division
x And y Perform a bitwise And operation
x Or y Perform a bitwise Or operation
x Xor y Perform a bitwise Exclusive Or operation
x << y Return the result of shifting the bits of x to the left y bits
x >> y Return the result of shifting the bits of x to the right y bits

Comparison Operators

= Equal
<> Not equal
> Greater than
>= Greater than or equal
< Less than
<= Less than or equal
And  
Or  
Not