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}}
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:
Also keep in mind that you can insert an
{{else}}
in between an{{#if}}
or{{#unless}}
and the closing tag.