Language quick reference
Earlier edition reference / Current 0.86.4.0 property paths > p. 329
| Construct | Form / rule |
|---|---|
| Language header | language 1.0 |
| Comments | # comment or // comment |
| Text | Single or double quotes; backslash escapes; one source line. |
| Declarations | let name: type = value, global name = value, const NAME = value |
| Assignment | set name to value, =, +=, -=, *=, /= |
| Decision | if test, else if test, else, end |
| Loops | repeat n times, while test, for each value, index in array; close with end. |
| Loop control | break, continue |
| Function | function name(a: type, b = default): type … end |
| Return | return value or bare return |
| Data record | record Name with field:type lines, then end. |
| Timing | wait n seconds, wait until condition, every n seconds … end. |
| Concurrency | parallel immediate branch instructions … end. |
| Recovery | try … catch problem … end |
| Event | when ... … end |
| Debugging | log value, warn value, assert condition, breakpoint |
| Cross-script | call_script(id, function, [arguments], context); readable call script / run visual script forms. |
Optional type names: number, integer, text, boolean, array, dictionary, vector2, vector3, color, record and null, plus a declared data-record type. There are no typed generic array declarations such as Array[String] in PCA source.
