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
KARIM EL ALAOUIKARIM EL ALAOUI 

IF with vlaues coming from list /Please Help

Dear All,
My If condition is always false even the 2 values compared match each other ?? see picture the result
******************
        <aura:iteration items="{!v.reclamationList}" var="reclamation">

            <aura:renderIf isTrue="{!reclamation.Type__c == !v.category}">
                {!reclamation.Type__c}/{!v.category}--True <aura:set attribute="else"> {!reclamation.Type__c}/{!v.category}--False </aura:set>
            </aura:renderIf>

        </aura:iteration>
******************
controller:
  updateSelect: function(component, event, helper) {
    //return the selected value

    var cat = component.find("selectItem").get("v.value");
    component.set("v.category", cat);
  },


display
Best Answer chosen by KARIM EL ALAOUI
Maharajan CMaharajan C
Hi Karim,

Try the below change in  your aura:renderIf 

<aura:renderIf isTrue="{!v.category == reclamation.Type__c}">

Thanks,
Maharajan.C

All Answers

Maharajan CMaharajan C
Hi Karim,

Try the below change in  your aura:renderIf 

<aura:renderIf isTrue="{!v.category == reclamation.Type__c}">

Thanks,
Maharajan.C
This was selected as the best answer
KARIM EL ALAOUIKARIM EL ALAOUI
Could you please explain to methe reason to figure out WHY?