Operators

Basic data types byte, int, long and fixed use the common arithmetic operators +, -, *, / for addition, subtraction, multiplication, division. In addition to the basic "=" operator the assignment operators +=, -=, *=, /= are supported.

Example
main
  print 4 + 2         // Prints 6
  print -2            // Prints -2
  int a = 1           // Sets value 1 to variable 'a'
  a = 2               // Sets 'a' value to 2
  a += 2              // Adds 2 to 'a' 
  print a             // Prints 4

Comparison of the basic types is done with common operators == < <= != > >=

Example
main
  int a = 1
  int b = 2
  
  if a < b
    print "a is smaller than b"      // Prints "a is smaller than b"
  if b > a  
    print "b is greater than a"      // Prints "b is greater than a"
  if a != b
    print "a and b are not equal"    // Prints "a and b are not equal"