+=

BlitzMax Forums/BlitzMax Beginners Area/+=

Craig H. Nisbet(Posted 2007) [#1]
Is there any equivalent to +=, or *= in max?


Who was John Galt?(Posted 2007) [#2]
x:+y
x:*y

There's a section in the docs somewhere with all the options


kfprimm(Posted 2007) [#3]
var1:+var2
var1:*var2
var1:-var2
var1:/var2


tonyg(Posted 2007) [#4]
I have no idea what += and *= are but you can say
value:+2
which is the same as
value=value+2
The same way you can say value:*2


Craig H. Nisbet(Posted 2007) [#5]
Cool! Thanks!


ImaginaryHuman(Posted 2007) [#6]
+= just means the same as a=a+b - add something to the value and store it in the original variable. Same for *=