summaryrefslogtreecommitdiff
path: root/examples/resources/lib/utillib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'examples/resources/lib/utillib.lua')
-rw-r--r--examples/resources/lib/utillib.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/resources/lib/utillib.lua b/examples/resources/lib/utillib.lua
index d6e5019..7fb7405 100644
--- a/examples/resources/lib/utillib.lua
+++ b/examples/resources/lib/utillib.lua
@@ -152,6 +152,10 @@ function utillib.toBoolean( v )
return false
end
+function utillib.boo2Number( bool )
+ return bool and 1 or 0
+end
+
-- Print table content.
function utillib.printt( t )
print( tostring(t).." = {" )