Language
The syntax of the script language: source text, literals, value types, variables, statements and operators.
- Overview — What a script is, the two engines an action can use, and how a script is compiled and run.
- Cheat sheet — The whole language at a glance in one short script.
- Source text — Comments, whitespace, semicolons, identifiers, keywords and dotted constant names.
- Literals — How integers, reals, text, booleans and named constants are written, and the string escapes.
- Value types — The five kinds of value a script works with, and how each one reads as true or false.
- Variables — How variables are created, where they can be used, their single scope and their lifetime.
- Statements — The statement grammar: assignment, expression statements, if/else, for and blocks.
- Operators — Operator precedence and the traps in short-circuiting, bitwise precedence and chained comparisons.
- Mixed-type rules — Which kind combinations each operator accepts, what it gives otherwise, and how to convert between kinds.