sonic-radiance/sonic-radiance.love/birb/utils/bools.lua

16 lines
234 B
Lua
Raw Normal View History

2021-08-31 10:57:24 +02: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