Skip to content

{{hasStringValue}}

Block helper that checks whether a value exists in a list of strings, and renders its content when it does. The optional {{else}} block renders when the value is absent. Matching is exact (case-sensitive).

{{#hasStringValue stringList "value"}} do something {{else}} do something else {{/hasStringValue}}
{{#hasStringValue businessKeyNames "CUSTOMER_ID"}}
CUSTOMER_ID is part of the business key.
{{else}}
CUSTOMER_ID is a regular attribute.
{{/hasStringValue}}