Assert

From GiderosMobile
Revision as of 10:05, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Issues an error when the value of its argument v is false (i.e., nil or false); otherwise, returns all...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

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(vmessage,)

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