to_boolean

Convert the input to a boolean value.

Example:

{{ "123"|to_boolean }}

Results in the boolean value true.

This filter uses the z_convert:to_bool/1 function.

See also

to_binary, format_number, format_integer