Compound Arithmetic Operators

In addition to the standard arithmetic operators the following compound operators
 
+=     -=     *=     /=     \=
 
Which provide a shortcut method for common operations
 
Instead of


  intTotal = intTotal + intNumber

We can

intTotal += intNumber

 
We can also use the &= operator to concatenate strings. After the following

strOutput = “Some output”
strOutput &= “ more output”

 
strOutput contains - "Some output more output"