Skip to content

LAU Syntax & Variables

LAU is a readable automation language. Unlike standard Lua, it uses specific keywords like varol and AND/OR logic.

Use comments to leave notes in your code. The system ignores these lines.

-- Single-line comment
--[[
Multi-line
comment block
]]

Variables store information. In LAU, every new variable must start with the varol keyword.

lau-compiler.exe
varol tomatoPrice = 2000
varol amountWanted = 20
varol totalPrice = tomatoPrice * amountWanted
print("20 Tomato Seeds will cost you:")
print(totalPrice)
OUTPUT:
20 Tomato Seeds will cost you: 40000

LAU supports standard math plus a unique square root operator.

OpActionExampleResult
+Add / Join"LAU " + 2"LAU 2"
*Multiply3 * 412
^Power2 ^ 38
%Modulo (Remainder)10 % 31
#Square Root#164

These return a Boolean (true or false).

  • == Equals
  • ~= Not Equal
  • > / < Greater / Less Than
  • >= / <= Greater / Less or Equal

LAU uses uppercase keywords for logical operations.

if freeSpot AND hasSeeds == true then
drone.plant(Enum.Seed.Wheat)
end

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 = null
varol displayName = savedName OR "Guest"
print("User: " + displayName)
OUTPUT:
User: Guest