How to implement not with if statement in Ember Handlebars

ember.jshandlebars.js

I have a statement like this:

{{#if IsValid}}

I want to know how I can use a negative if statement that would look like that:

{{#if not IsValid}}

Best Answer

Simple answers for simple questions:

{{#unless isValid}}
{{/unless}}

Also keep in mind that you can insert an {{else}} in between an {{#if}} or {{#unless}} and the closing tag.

Related Topic