CoalesceWithBoolOverNot.yqls 317 B

12345678910
  1. (
  2. (let config (DataSource 'config))
  3. (let res_sink (DataSink 'result))
  4. (let optBool (SafeCast (/ (Int32 '1) (Int32 '0)) (OptionalType (DataType 'Bool))))
  5. (let data (Coalesce (Not optBool) (Bool 'false)))
  6. (let world (Write! world res_sink (Key) data '('('type))))
  7. (let world (Commit! world res_sink))
  8. (return world)
  9. )