parse_bool
Parses a boolean value.
Example
1
{{ 'yes' | parse_bool }} => true
Input
| Type | Parameter | Description | Required |
|---|---|---|---|
| string | input | The value to parse. Comes before the | sign. | Required |
| string | localYes | When value is this always return true | |
| string | nullCompareValue | When the value is this return null |
Output
| Type | Description |
|---|---|
| bool | Boolean value |