Assert

This page contains changes which are not marked for translation.


Available since: Gideros 2011.6
Class: (global)

Description

Issues an error when the value of its argument v is false (i.e., nil or false); otherwise, returns all its arguments. message is an error message; when absent, it defaults to "assertion failed!"

assert(v,message)

Parameters

v: (any) expression/function to assert
message: (string) error message if assert fails optional