Salesforce Fact #111 | Single line multi var assignment

Apex also supports multi variable assignment with the same value in a single statement. I am not sure if it is a best practice, but this is super cool. :)

Attached is the screenshot.

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



Comments

Popular posts from this blog

Salesforce Fact #192 | Call batch apex from flow

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