Skip to content

Commit

Permalink
Add to_bool expression function
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ committed Nov 24, 2024
1 parent 0cc63c0 commit 86f50fb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions docs/user_manual/expressions/expression_help/Conversions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,30 @@ Encodes a binary value into a string, using the Base64 encoding.

.. end_to_base64_section
.. _expression_function_Conversions_to_bool:

to_bool
.......

Converts a given value to a boolean. The function will return false if the value is NULL, an empty string, an empty list, or 0.

.. list-table::
:widths: 15 85

* - Syntax
- to_bool(value)
* - Arguments
- * **value** - value to convert to boolean
* - Examples
- * ``to_bool('')`` → false
* ``to_bool('123')`` → true
* ``to_bool(0)`` → false
* ``to_bool(1)`` → true
* ``to_bool(null)`` → false


.. end_to_bool_section
.. _expression_function_Conversions_to_date:

to_date
Expand Down

0 comments on commit 86f50fb

Please sign in to comment.