forked from VoxeLibre/VoxeLibre
Add mcl_util.to_bool
This commit is contained in:
parent
2c3abd599b
commit
090c90f4fc
|
@ -1103,3 +1103,8 @@ function mcl_util.is_it_christmas()
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function mcl_util.to_bool(val)
|
||||||
|
if not val then return false end
|
||||||
|
return true
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue