lua中 三目运算符的实现
a ? b : c
(a and b) or c
a为true 则 (a and b) <==> b
a为false 或 nil时 (a and b) <==> a
又 a or c <==> a
所以
(a and b) or c <==> a ? b : c