Operators and Expressions

You can modify a value by using operators. The available operators are described in the following tables:

Assignment Operator

Operator

Meaning

Example

:=

Assignment

myNum := 42

Arithmetic Operators

Operator

Meaning

Example

**

Exponentiation

mySquare := myNum ** 2

*

Multiplication

myNum := numA * numB

/

Division

numA := myNum / numB

+

Addition

myNum := numA + numB

-

Subtraction

numA := myNum - numB

Concatenation Operators

Operator

Meaning

Example

&

String concatenation

MyString := “poly” & “unsaturated”

&+

String concatenation with space

MyString := “Hello” &+ “world!”

Boolean Operators

Operator

Meaning

Example

&&

AND

 

||

OR

 

ISA

ISA