SPL supports several assignment operators:
Operator |
Description |
+= |
add then assign |
-= |
subtract then assign |
*= |
multiply then assign |
/= |
divide then assign |
%= |
modulo then assign |
>>= |
bit right shift then assign |
<<= |
bit left shift then assign |
&= |
bit and then assign |
|= |
bit or then assign |
|^= |
bit xor then assign |
@= |
append then assign |
@@ |
concatenate |
If e1 and e2 are expressions, then
e1 op= e2
is equivalent to
e1 = (e1) op (e2)
except that e1 is computed only once.