You can combine and and or clauses like ternary operators. function bool_to_number(value) return value and 1 or 0 end You can also do this: bool_to_number={ ...
確定! 回上一頁