You need to sign in to do that
Don't have an account?
Mark Gallagher
Condtional statements in lightning markup
<aura:component implements="flexipage:availableForAllPageTypes" access="global" >
<aura:if isTrue="{!$Lead.Sys_Household__c == 'Wally West Jesse Quick'}">
<img src="{!$Resource.Flash}"/>
<aura:set attribute="else">
<p>False </p>
</aura:set>
</aura:if>
</aura:component>
I am trying to get a picture to show up based on a condition the problem is that I know this condition to be true, but it is giving the False output.
<aura:if isTrue="{!$Lead.Sys_Household__c == 'Wally West Jesse Quick'}">
<img src="{!$Resource.Flash}"/>
<aura:set attribute="else">
<p>False </p>
</aura:set>
</aura:if>
</aura:component>
I am trying to get a picture to show up based on a condition the problem is that I know this condition to be true, but it is giving the False output.
Code
Result
Code
Result: false