May 2019
Intermediate to advanced
546 pages
12h 41m
English
In the previous chapters, you learned to write formulas for validation criteria, for workflow criteria, and to define some calculated content in a field.
In Apex, we need to have similar operators to calculate or to define what needs to be executed.
In the following table, you will find an overview of operators that we can use in Apex:
|
= |
Assignment operator: The data type of the variable x must be of the same type of the variable y: Integer x = 3 |
|
+= |
Addition and assignment operator: It adds the value to the original value and reassigns the new value to the initial variable: Integer x = 2;Integer y = 4;y += x; // y becomes 6y = y + x; // this would be the same as using '+=' but longer |
|
*= |
Multiplication and assignment ... |
Read now
Unlock full access