Only lua nil and false are "falsey". Both 0 and '' are true.
aBool = false
-- 'or' and 'and' are short-circuited.
-- This is similar to the a?b:c operator in C/js:
ans = aBoolValue and 'yes' or 'no' --> 'no'
Only lua nil and false are "falsey". Both 0 and '' are true.
aBool = false
-- 'or' and 'and' are short-circuited.
-- This is similar to the a?b:c operator in C/js:
ans = aBoolValue and 'yes' or 'no' --> 'no'