OWBasic for Pocketviewer

Home INTRO Group EXPRESSION Alphabetical Index

Arithmetic operators

Arithmetic operators and their availability:


levelOperatorIntegerFloatStringBoolean
1'--'yesnononoDecremention (unary; prefix and suffix version)
1'++'yesnononoIncremention (unary; prefix and suffix version)
2'*'nonononoPointer dereferencing (unary)
3'^'yesyesnonoPotentiation
4'*'yesyesnonoMultiplication
4'/'yesyesnonoDivision
4'%'yesnononoModulo
5'+'yesyesyesnoAddition
5'-'yesyesnonoSubstraction
6<yesyesyesnoLess than
6<=yesyesyesnoLess or equal
6=yesyesyesnoequal
6>yesyesyesnogreater or equal
6>=yesyesyesnogreater than
6<>yesyesyesnonot equal
7ANDyesnonoyesAND
8ORyesnonoyesOR
8XORyesnonoyesXOR
9?:yesyesyesyesconditional evaluation

Operators with a lower level are evaluated first.
Operators on the same level are evaluated from left to right.
The result of the comparisn operators is boolean.
The boolean negation is done by the function NOT!()
Note: The modulo-operator is at the same time a type characteristic (Integer). Therefore a blank must always stand after previous identifiers if used as modulo-operator.


  • IFUNC - Procedure and Functions to work with integer values
  • FFUNC - Procedures and Functions for Work with Real Values
  • SFUNC - Procedures And Functions to Work With Strings
Home INTRO Group EXPRESSION Alphabetical Index