SmallBASIC GuideThe language | Programming Tips | Commands | System | Graphics & Sound | Miscellaneous | File system | Mathematics | 2D Algebra | Strings | Console | Glossary |
Operators

Sorted by priority
() Parenthesis
+,- Unary
~ bitwise NOT
NOT or ! Logical NOT (NOT false = true)
^ Exponentiation
*,/,\ Multiplication, Division, Integer Division
% or MOD Reminder (QB compatible: a=int(a), b=int(b), a-b*(a/b))
MDL Modulus (a%b+b*(sgn(a)<>sgn(b)))
+,- Addition/Concatenation, Subtraction
= Equal
<> or != Not Equal
>,< Less Than, Greater Than
=>,=< Less or Equal, Greater or Equal
>=,< Less or Equal, Greater or Equal
IN belongs to ...(see "The IN operator")
LIKE Regular expression match (see "The LIKE operator")
AND or & Logical AND
OR or || Logical OR
BAND or & bitwise AND
BOR or | bitwise OR
EQV bitwise EQV
IMP bitwise IMP
XOR bitwise XOR
NAND bitwise NAND
NOR bitwise NOR
XNOR bitwise XNOR


[Prev] [Next]