If I want to filter the content if it is activated or deactivated (with if sentence), with theme_config.latestposts.enabled it does not work, however with theme_config.latestposts == true it works correctly.
Why is this happening? Is there something I am doing wrong?
I thought that it could be done the same as when we want to execute some code depending on whether a plugin is activated or not (config.plugins.XXX.enabled).