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}}
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.
unless is a fairly common inversion of if.You have many ways of doing that.
{{unless}}:{{#unless isValid}}
...
{{else}}
...
{{/unless}}
{{#if (if isValid false true)}}
...
{{else}}
...
{{/if}}
{{#if (not isValid)}}
...
{{else}}
...
{{/if}}