Can I access theme settings in the Body/Head template?

I tried to search for this, but I cannot find a clear answer. I am not able to use a theme’s settings to add conditionals in the “Body” or “Head” tab of Discourse. I need to show a banner in there only if a theme setting is set to true.

I am having a bit of difficulty navigating the documentation.

Thanks!

do you mean you want to show a banner in one theme but not others?

No, let’s say I have created a theme setting for a theme; I would like to be able to access it in the Body/Head template of the web interface.

Something like this:

Thank you!!!