canaryThese pages document the canary: an unreleased build. What they describe may not be in the version you have, and may change before it is.The stable build
Try it in your browsercanary Source

AssertLuau✎

Errors when the condition is false or nil. The check runs in production too — it is a claim about your own code, not a debug-only guard.

Pending review

AssertConditionassertio…Message
  • the language itself, so it works in Roblox and in Lune

Inputs

  • in:execution
  • Condition:boolean= true
  • Message:string= "assertion failed"

Outputs

  • then:execution

What it compiles to

luau
assert(true, "assertion failed")

Not reviewed yet