Vyacheslav Kalitkin wrote:
I want suggest you to add "toboolean()" like existing tonumber() and tostring() functions. I know what "not not X" is same result, but looking toboolean(X) is more clear.
function toboolean(X) return not not X end :D