let bool b = JSOO.int (if b then 1 else 0)