Skip to content

Instantly share code, notes, and snippets.

@magnli10 magnli10/Handlebars
Created Apr 6, 2016

What would you like to do?
* If not equal
* {{#ifnoteq "valueA" "valueB"}} ... {{else}} ... {{/if}}
Handlebars.registerHelper('ifnoteq', function ifnoteq(a, b, opts) {
return (a != b) ? opts.fn(this) : opts.inverse(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.