Skip to content
AEOWUN
Docs Menu

Operators

Calculate, compare, and combine values.

Arithmetic

Use +, -, *, /, and % with numbers.

const total = 10 + 5 * 2
debug.log(total)

This prints 20. Parentheses change the order: (10 + 5) * 2 is 30.

Comparisons

Use ==, !=, <, <=, >, and >= to compare values.

Logic

Use && for both conditions, || for either, and ! for not.

if health > 0 && ready {
    debug.log("Can act")
}

Assignment

score = 10
score += 5

See Variables for scope and constants.

[BETA] marks features newer than the current public release. Current release: 0.8.0.