Changes
Jump to navigation
Jump to search
← Older edit
assert
28 bytes added
,
21:57, 8 November 2014
no edit summary
Line 1:
Line 1:
The assert() function is a way to execute functions.
The assert() function is a way to execute functions.
−
+
<source lang="lua">
assert(foo, errmsg)
assert(foo, errmsg)
−
+
</source>
It will try to execute the function foo and will send errmsg as an error if it fail.
It will try to execute the function foo and will send errmsg as an error if it fail.
Technolapin
9
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version