Home  Contents

assert

Global Lua Commands

SYNOPSIS

assert(v[,message])

DESCRIPTION

Issues an error when the value of its argument v is false (i.e., nil or false); otherwise, returns all its arguments.

ERRORS

message is an error message; when absent, it defaults to "assertion failed!"