Salesforce Fact #121 | Switch case apex

When clause in switch statement considers only literal value. It does not accept variable or final value.

Attached is the screenshot.

For more details check: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_switch.htm




Comments

Popular posts from this blog

Salesforce Fact #218 | Blank picklist value is actually NULL

Salesforce Fact #947 | Resolving dashboard logged-in user limit error

Salesforce Fact #989 | New delete files permission