Expressions and operators

An expression is a sequence of operators, operands, and special characters that EGL evaluates at run time. Operands can be literals, identifiers, or keywords (see General syntax). EGL can evaluate the following kinds of expressions:

EGL evaluates expressions according to a set of precedence rules (see Operators and precedence) and (within a given level of precedence) from left to right, but you can use parentheses to force a different ordering. A nested parenthetical subexpression is evaluated before the enclosing parenthetical subexpression, and all parenthetical expressions are evaluated before the expression as a whole.

As well as a value, expressions also have a type. A type is a set of formal limits to the values that an expression can have. For more about the typing of expressions, see Expression types. For more about types, see Types and Primitive data types.


Feedback