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
Anirban SenAnirban Sen 

aura:if not working

{!colHeader1 == objRecord.Column_Name__c} this is returning true but 
<aura:if isTrue="{!colHeader1 == objRecord.Column_Name__c}"> this is not working. Means code within the if is not working.

Can any one help
Raj VakatiRaj Vakati
try thi s
<aura:if istrue="{!eq(colHeader1,objRecord.Column_Name__c)}">
</aura:if>

 
Maharajan CMaharajan C
Hi Anirbban,

If you are getting the value from attribute then please include the V as below.


<aura:if isTrue="{! (v.colHeader1 == v.objRecord.Column_Name__c) }">

or  try the below one:

<aura:if isTrue="{! eq(v.colHeader1,v.objRecord.Column_Name__c)}">

 Can you please Let me know if it helps or not!!!

If it helps don't forget to mark this as a best answer!!!


Thanks,
Raj