Converts a truthy value to the string true
and a falsy to the string false
. Check out https://www.php.net/manual/en/language.types.boolean.php to see what PHP considers truthy and falsy.
no: 0yes: "hell, yea"sure: -1
{{ no | bool_string }}{{ yes | bool_string }}{{ sure | bool_string }}
falsetruetrue