TRIK Studio language operators

Binary operators

Unary operators

Assignment operator

It has the following form:

variable1, variable2, …, variableN = expression1, expression2, …, expressionN

In its simplest form variable = expression.

Return operator

It is written as an expression and should be at the end of the statement block.

Empty operator

Written as ;.

Example

A statement block with two assignment operators and a return operator:

a, b = 1, 2; -- assignment operator and empty operator
c = 3; -- assignment operator and empty operator
a + b + c -- return operator

Last updated