sonic-bluestreak/sonic-bluestreak.love/birb/utils/bools.lua
2021-11-25 10:46:15 +01:00

15 lines
234 B
Lua

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