Activity › Forums › Salesforce® Discussions › How to use IF Statements in Salesforce Lightning Component? Tagged: IF Statment, Salesforce Lightning Component Salesforce® Discussions How to use IF Statements in Salesforce Lightning Component? Posted by Deepak on September 9, 2019 at 3:00 PM How to use IF Statements in Salesforce Lightning Component? Piyush replied 6 years, 8 months ago 2 Members · 1 Reply IF StatmentSalesforce Lightning Component 1 Reply 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. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me