Syntax and Control Flow

Literals, variables, operators, captures, methods, blocks, query expressions, and threading syntax.

Subcategories

Reference Pages

Control flow

if, else, loop, with, iterate, while, abort, return, loop_abort, and loop_continue control execution.

loop_key

Returns the current key during keyed iteration.

loop_value

Returns the current value during iteration.

assignment

Assigns a value to an existing local variable or data target.

Comments

Line comments and block comments document code without producing output.

Operators

LaiRu includes arithmetic, comparison, boolean, membership, range, assignment, and conditional shorthand operators.

Variables

Local variables use #name and thread variables use $name.

capture

Stores executable LaiRu code as a value.

Captures

Captures are executable blocks passed to methods, stored in values, and invoked later.

Methods

define creates named methods with parameters, constraints, defaults, blocks, and return values.

generateSeries

Generates a numeric series for query and iteration work.

Query expressions

Query expressions filter, sort, group, and project in-memory LaiRu values.

split_thread

Starts work in another thread and returns thread coordination data.