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

16 lines
234 B
Lua
Raw Permalink Normal View History

2021-11-25 10:46:15 +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