Activity Forums Salesforce® Discussions How to use IF Statements in Salesforce Lightning Component?

  • Piyush

    Member
    September 10, 2019 at 4:37 am

    Hi Deepak,

    You can use IF Statements in Salesforce Lightning Component like this:-

    aura:if  isTrue="{!and(
                            and(v.wrp.ObjectApiNAme!='Pay_Element_Master__c', v.wrp.ObjectApiNAme!='CTC_Master__c'), 
                            v.wrp.ObjectApiNAme!='Section_Master__c')
                        )}">
            <lightning:select name="select" label=" " aura:id="o" >
                <option value="">None</option>
            </lightning:select>
        </aura:if>

     

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos