soggy.Documentation Back to Soggy ↗

assert

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

assert(expression, message: string)

Arguments

NameDescriptionType
expressionIf this is false or nil, an error is thrown.unknown
messageThe error message to throw.string

Type to search guides, functions and events.