pub fn bool(value: Value) -> bool
builtins
Converts the value into a boolean value.
This behaves the same as the if statement does with regards to handling of boolean values.