epervier-old/birb/utils/bools.lua

16 lines
234 B
Lua
Raw Normal View History

2021-12-04 13:18:54 +01:00
local Bools = {}
function Bools.either(bool, val1, val2)
if (bool) then
return val1
else
return val2
end
end
function Bools.toString(bool)
return Bools.either(bool, "true", "false")
end
return Bools