Lua で3項演算子 ref: http://qiita.com/fakestarbaby/items/60af653b6775be96babf