-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbool2int.lua
More file actions
22 lines (22 loc) · 847 Bytes
/
bool2int.lua
File metadata and controls
22 lines (22 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--[[
***********************************************************
bool2int.lua
This particular file has been released in the public domain
and is therefore free of any restriction. You are allowed
to credit me as the original author, but this is not
required.
This file was setup/modified in:
2015, 2016, 2017
If the law of your country does not support the concept
of a product being released in the public domain, while
the original author is still alive, or if his death was
not longer than 70 years ago, you can deem this file
"(c) Jeroen Broks - licensed under the CC0 License",
with basically comes down to the same lack of
restriction the public domain offers. (YAY!)
***********************************************************
Version 17.02.18
]]
function bool2int(boolexpression)
if boolexpression then return 1 else return 0 end
end