Skip to content

{{#stringcompare}}

Block helper that evaluates whether the input matches a specified string. Optionally supports an {{else}} block.

{{#stringcompare string1 string2}} do something {{else}} do something else {{/stringcompare}}
A and B {{#stringcompare "A" "B"}}are the same. {{else}}are not the same. {{/stringcompare}}

This results in:

A and B are not the same.