Lua
C++
Edit

Assert

This function produces a runtime error if the supplied condition or object is false or nil.

Syntax

Parameter

Parameter Description
condition if false a runtime error is generated
o if nil a runtime error is generated
message error message to display

Example

Assert(false, "An error occurred.")
Copyright © 2024 Ultra Software.
All rights reserved.