OWBasic for Pocketviewer

Home INTRO Group EXPRESSION Alphabetical Index

Arithmetic operators

Arithmetic operators and their availability:


levelOperatorIntegerFloatStringBoolean
1'*'yesyesnonoMultiplication
1'/'yesyesnonoDivision
1'%'yesnononoModulo
2'+'yesyesyesnoAddition
2'-'yesyesnonoSubstraction
3<yesyesyesnoLess than
3<=yesyesyesnoLess or equal
3=yesyesyesnoequal
3>yesyesyesnogreater or equal
3>=yesyesyesnogreater than
3<>yesyesyesnonot equal
4ANDyesnonoyesAND
5ORyesnonoyesOR
5XORyesnonoyesXOR

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