LAU Syntax & Variables
LAU is a readable automation language. Unlike standard Lua, it uses specific keywords like varol and AND/OR logic.
Comments
Section titled “Comments”Use comments to leave notes in your code. The system ignores these lines.
-- Single-line comment--[[ Multi-line comment block]]Variables (varol)
Section titled “Variables (varol)”Variables store information. In LAU, every new variable must start with the varol keyword.
lau-compiler.exe
varol tomatoPrice = 2000varol amountWanted = 20varol totalPrice = tomatoPrice * amountWantedprint("20 Tomato Seeds will cost you:")print(totalPrice)OUTPUT:
20 Tomato Seeds will cost you:
40000
lau-compiler.exe
varol crop = "Wheat"varol wheatPrice = 20
print(crop + " costs " + wheatPrice)OUTPUT:
Wheat costs 20
Operators
Section titled “Operators”Math Operators
Section titled “Math Operators”LAU supports standard math plus a unique square root operator.
| Op | Action | Example | Result |
|---|---|---|---|
+ | Add / Join | "LAU " + 2 | "LAU 2" |
* | Multiply | 3 * 4 | 12 |
^ | Power | 2 ^ 3 | 8 |
% | Modulo (Remainder) | 10 % 3 | 1 |
# | Square Root | #16 | 4 |
Comparison Operators
Section titled “Comparison Operators”These return a Boolean (true or false).
==Equals~=Not Equal>/<Greater / Less Than>=/<=Greater / Less or Equal
Logic & Short-Circuiting
Section titled “Logic & Short-Circuiting”LAU uses uppercase keywords for logical operations.
AND / OR Logic
Section titled “AND / OR Logic”if freeSpot AND hasSeeds == true then drone.plant(Enum.Seed.Wheat)endDefault Values (Short-Circuit)
Section titled “Default Values (Short-Circuit)”The OR operator is a powerful way to handle empty (null) data. It picks the first “True” value it finds.
lau-compiler.exe
varol savedName = nullvarol displayName = savedName OR "Guest"
print("User: " + displayName)OUTPUT:
User: Guest