Salesforce Apex: Underused Operators
Sep 3, 2021
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 || yx &= y
//x = x && yz = x?.y
//z = (x == null) ? null : x.y;