crm-rush/api/soft/smarty/4.5.2/docs/programmers/api-variables/variable-config-booleanize.md

9 lines
381 B
Markdown
Raw Normal View History

2024-09-27 15:28:55 +05:00
\$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.