FANDOM



assert(<vVariable> [, <sMessage>])
Description (from LUA 4 Manual: 6.1 Basic Functions)
"Issues an 'assertion failed!' error when its argument <vVariable> is nil. This function is equivalent to the following Lua function:"
function assert (v, m)
	if not v then
		m = m or ""
		error("assertion failed!  " .. m)
	end
end
Example


Arguments
<vVariable>: any declared variable.
<sMessage>: optional message to print. The message 'assertion failed!' is used by default.
Related Pages


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.