Skip to content

{{#stringdiff}}

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

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

This results in:

A and B are not the same.