function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Tanuj TyagiTanuj Tyagi 

Nested Aura If Not working

Hi, I am iterationg some records and i want to put images based on condition , I am comparing values in <aura:if>  but its not working.
Below is the code :

 <aura:iteration items="{!v.applicationList}" var="obj">
   <aura:if isTrue="{!obj.Status__c=='Approved'}">
       <i class=""><img src="/resource/1473844082000/app_approve"/></i>
  </aura:if>
   <aura:if isTrue="{!obj.Status__c=='In progress'}">
      <i class=""><img src="/resource/1473663683000/app_yell"/></i>  
   </aura:if>
   <aura:if isTrue="{!obj.Status__c=='Declined'}">            
      <i class=""><img src="/resource/1473844158000/app_pending"/></i>  
   </aura:if>          

</aura:iteration>


I tried with this code, but this is also not working,

<aura:if isTrue="{!obj.Status__c=='Approved'}">
<i class=""><img src="/resource/1473844082000/app_approve"/></i>
<aura:set attribute="else" >
  <aura:if isTrue="{!obj.Status__c=='In progress'}">
<i class=""><img src="/resource/1473663683000/app_yell"/></i>  
 <aura:set attribute="else" >
      <aura:if isTrue="{!obj.Status__c=='Declined'}">            

          <i class=""><img src="/resource/1473844158000/app_pending"/></i>    
<aura:set attribute="else">
          
          none
          </aura:set>
     </aura:if>
      </aura:set>
</aura:if>
</aura:set>
</aura:if>
Tanuj TyagiTanuj Tyagi
We got the Solution.
Thanks
Eshaani.IshaaEshaani.Ishaa
Could you please share the solution here. Thanks 
SFDummySFDummy
I am having the issue with nested aura:if  I am getting duplicate values. Not sure if it is just how we next tag  <aura:set attribute="else">  or something else
 
Naveen KNNaveen KN
this might be useful 
https://www.codengine.in/2019/07/nested-iteration-salesforce-lightning-aura-components.html