Salesforce Fact #746 | lwc:else is optional
Just like most of the programming languages, lwc:else is optional even if we are using lwc:elseif.
In this example, we want to show data if the user is assigned either custom permission1 or custom permission2, but we don't want to show anything otherwise.
For more details, check out: https://developer.salesforce.com/docs/platform/lwc/guide/create-conditional.html
Attached are the screenshots.
Comments
Post a Comment