How to write an if-else statement in Aura

318    Asked by vivekKhan in Salesforce , Asked on Aug 8, 2021

I tried to write out the aura if statement but I am getting stuck if someone can explain me how to use aura:if statement correctly. thank you

Answered by Mayank Mistry

Here is the code for aura:if statement

You "aura:set" the else attribute:

 Content when true  Content when false  

Your Answer

Interviews

Parent Categories