Zum Inhalt springen

Basic elements

Dieser Inhalt ist noch nicht in deiner Sprache verfügbar.

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 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) *)

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

Var1 := Var2.1;
(* Single line comment *)
(*
Multiple
line
comment
*)
// Another
// Way
// Of
// Commenting
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