Skip to main content

Basic elements

Expressions

Expressions return values after they have been calculated. They are composed of operators and operands. An operand can be a variable, a constant or a function call. Operators connect the operands.

b + a;
(a + b - c) * SIN(a);
COS(b) * COS(a);

Assignments

Assignments consist of a variable to which the result of a calculation or expression is assigned using the assignment operator.

Var1 := Var2 * 15; (* Var1 <- (Var2 * 15) *)

Bitwise access

For bitwise assignment the variable can be completed via "." and bit number.

Var1 := Var2.1;

Documentation comments

(* Single line comment *) 

(*
Multiple
line
comment
*)

// Another
// Way
// Of
// Commenting

Operators priorities

OperatorSyntaxPriority
Brackets()Highest priority
Function callCall(argument)
Exponent**
NegationNOT
Multiplication, Division, Modulo Division*, /, MOD
Addition, subtraction+, -
Compare<, >, <=, >=
Equality, inequality=, <>
Boolean ANDAND
Boolean XORXOR
Boolean ORORLowest priority