Ben Butler
Ben Butler

Sep 3, 2021

·
1 min read

Salesforce Apex: Underused Operators

Some Apex operators seem underutilized. They are an easy way to make the code succinct, a bit cleaner, and a bit easier to maintain.

x |= y
//x = x || y
x &= y
//x = x && y
z = x?.y
//z = (x == null) ? null : x.y;

--

--

More from Ben Butler

Recommended from Medium

Resume Writing

Resume Writing

Custom Software Development Services: A Leap To The Future

Kelly Burke

Kelly Burke

Should you build that new feature? Ask yourself these 3 questions.

Waqas Hamid

Waqas Hamid

The great paradoxical deadlock tale

Simon

Simon

Treasure hunting app project

Ricardo Olivieri

Ricardo Olivieri

in

IBM Watson AIOps

Working with File Observers in WAIOps 3.1.1

Venoticias Fnn

Venoticias Fnn

#VeNoticias #QueEstaPasando #Viernes #7Enero #Noticias #Venezuela #08:45 a.m.

Naveen Mishra

Naveen Mishra

How useful c# foreach loop is

Orie Chinedu Emmanuel

Orie Chinedu Emmanuel

Laravel Dockerization out of the box!

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Get unlimited access
Ben Butler

Ben Butler

195 Followers

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech