If you're facing an issue with Aura:if isTrue while using the And Clause or OR clause we need to know the below points.
According to salesforce documentation And/Or clause only supports two arguments for evaluation.
If you're using more than 2 arguments in And/Or clause by default Salesforce ignores it.
<Aura:if IsTrue ="Or(expression 1,expression 2)"> - - This is valid.
<Aura:if IsTrue ="Or(expression 1,expression 2, expression 3)"> - - This will not work as expected because Salesforce ignores the expression 3 for evaluation.
Workaround :
If you need to solve this problem simply convert them into simple multiple chain expressions.
Aura:if IsTrue ="Or(expression 1,expression 2) || expression 3)">
Aura:if IsTrue ="Or(expression 1,expression 2) || Or(expression 3, expression 4)">
Hope this helps you..Enjoy..!
Please comment or write us if you have any queries/requirements.
Please like,follow,bookmark,subscribe this site to receive daily updates.
Please like,follow,bookmark,subscribe this site to receive daily updates.
ReplyDeleteTraveling to new places can be an exciting adventure that broadens your horizons and enriches your understanding of different cultures. Sometimes, the best way to explore is by taking a chance and stepping out of your comfort zone. If you're interested in discovering more travel tips and guides, you might want to visit this site: Click here!. Remember, every journey begins with a single step, so start planning your next trip today.