Home Controls Objects Operators

 

Operators

 &    logical and

 *    multiply

 ^    exponentiation

 +    addition

 -    subtraction

 /    division

 <    less than

 <=   less than or equal to

 =    assignment

 =    equal

 >    greater than

 >=   greater than or equal to

 <>   not equal

 |    logical or

  <<  shift left

  >>   shift right

  &&   and

  ||       or

Example

 p 2 ^ 3 + 4

12

p 2 ^ (3+4)  // the brackets force the 3+4 first

128

x = 45 // assign the value 45 to the variable x

 

if x = 45 then

p "x is 45"

else

p "x is not equal to 45"

endif