Discussions

Ask a Question
Back to All

Equal for Multiple Possible Values?

I have a setting in a template that is a select list. In the template itself, I need to check to see if the setting value is one of multiple possibilities. I'm not sure how to do that with Handlebars and searching hasn't yet helped me find what I'm looking for.

Here's what I'd like to do in the template, if the syntax supported it.

{{#equal Settings.LayoutStyle "bottom-standard" || "bottom-justified" || "bottom-centered"}}

{{/equal}}