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

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

Salesforce Fact #457 | Get current user role name in flow