+= and -= Operators

kanaida

Active Member
Licensed User
Longtime User
I didn't realize just how often I have to do stuff like this:

MyVariable = MyVariable + 1

Can we add the other operators so we can save a little bit of writing? :) I keep writing it this way, then re-writing it to the style above. I guess it's just been hammered into my head when trying to keep code tiny.

MyVariable += 1 (adds to itself)

or

MyVariable -= 1 (subtracts from itself)
 

mc73

Well-Known Member
Licensed User
Longtime User
ThisRequest +=1

Sorry, couldn't resist :D

:sign0142:

Anyway, I use this abr too, yet, I find the autoComplete feature very useful lately, also in circumstances like the above.
 
Top