I am writing a new Lightning Component to conditionally render a message based on a few field values. I am close to having the conditions render like I want, but I can't figure out how to write in a not(field_name) type of condition into the aura:if statement.
Since aura:if require isTrue, I need to reverse engineer the condition so that the message displays when isTrue="not(Boolean_Field)
Here's my code. Any suggestions?
<aura:if isTrue="{!v.eventsSimple.Event_Closed__c}">
<div style="background-color: red; font-weight: bold; color: white;">
This event is closed.
</div>
</aura:if>
<aura:if isTrue="{!and(not(v.eventsSimple.Event_Closed__c),lessthan(v.eventsSimple.Spots_Remaining__c,1))}">
<div style="background-color: orange; font-weight: bold; color: black;">
This event is full but accepting a waitlist. Nominees in queue: <ui:outputText value="{!abs(v.eventsSimple.Spots_Remaining__c)}"/>
</div>
<aura:set attribute="else">
<div style="background-color:green; color: white; font-weight:bold;">
This event is available for nomination. Please make sure to review the description and eligibility rules.
<br/>
Remaining slots: <ui:outputText value="{!v.eventsSimple.Spots_Remaining__c}"/>
</div>
</aura:set>
</aura:if>
The 2nd aura:if statement is the one in question.