Skip to content

assert

assert(expression, message)

If the first argument is false or nil, an error is thrown with the second argument as the message. Otherwise, all arguments are returned.