You need to sign in to do that
Don't have an account?
Mark Gallagher
Hey can't figure out why I'm getting an error for this trying to do IF AND statement in a lightning component
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
<aura:attribute name="Lead" type="Lead"/>
<aura:if isTrue="{!and(v.Lead.pi__score__c != 0, v.Lead.Email = "darkknight@theherogothamneeds.com")}">
<p> one step closer</p>
<aura:set attribute="else">
<p> still one step closer</p>
</aura:set>
</aura:if>
</aura:component>
<aura:attribute name="Lead" type="Lead"/>
<aura:if isTrue="{!and(v.Lead.pi__score__c != 0, v.Lead.Email = "darkknight@theherogothamneeds.com")}">
<p> one step closer</p>
<aura:set attribute="else">
<p> still one step closer</p>
</aura:set>
</aura:if>
</aura:component>
Raj Vakati
Try like below
Mark Gallagher
This stopped me from getting a Syntax error, but when I added to my Lightning page I'm getting logic errors I purposefully made the emails not match, but it's still giving me the print statement for a true condition.