CVGalleryGamesPreviewRandomJavaSiteWeb
Site updates
Testing New System now...

Using += , -= , *= , /= and %=

These are all handy shortcuts to do a calculation on a variable, and then put the result back into the variable. + , - , * , / should be familiar. If you're wondering what % is, it's the modulus function.

Operator Example Equivalent to
+= foo += 5 foo = foo + 5
-= foo -= 5 foo = foo - 5
*= foo *= 5 foo = foo * 5
/= foo /= 5 foo = foo / 5
%= foo %= 5 foo = foo % 5
See also " Using ++ and -- "
NOTE: The Java section is mostly in maintenence mode. I don't have time to work on it right now. Errors will be corrected if pointed out, but they are not actively being searched for. Newer site features, like alternate stylesheets, may cause problems with these pages.