aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/smarty/smarty/docs/programmers/api-variables/variable-config-booleanize.md
blob: 4ba555f84642a093ca43535b49322948afe2a785 (plain) (blame)
1
2
3
4
5
6
7
8
\$config\_booleanize {#variable.config.booleanize}
====================

If set to TRUE, [config files](#config.files) values of `on/true/yes`
and `off/false/no` get converted to boolean values automatically. This
way you can use the values in the template like so:
`{if #foobar#}...{/if}`. If foobar was `on`, `true` or `yes`, the `{if}`
statement will execute. Defaults to TRUE.