## Reference.IncrementCompound History

July 16, 2007, at 12:51 PM by Paul Badger -
Deleted lines 30-36:

[[ Arithmetic | +=]]\\
[[ Arithmetic | -=]]

July 16, 2007, at 12:50 PM by Paul Badger -
Deleted line 33:

July 16, 2007, at 12:50 PM by Paul Badger -
Changed line 36 from:
[[ Arithmetic | -=]]
to:
[[ Arithmetic | -=]]
July 16, 2007, at 12:48 PM by Paul Badger -
July 16, 2007, at 12:47 PM by Paul Badger -
Deleted line 18:
July 16, 2007, at 12:47 PM by Paul Badger -
Deleted line 19:
July 16, 2007, at 12:47 PM by Paul Badger -
Changed lines 18-20 from:
x: any variable type \\
to:
x: any variable type

July 16, 2007, at 12:47 PM by Paul Badger -
Changed line 18 from:
x: any variable type\\
to:
x: any variable type \\
July 16, 2007, at 12:46 PM by Paul Badger -
Changed lines 18-20 from:
x: any variable type
//y: any variable type or constant
to:
x: any variable type\\
y: any variable type or constant
July 16, 2007, at 12:46 PM by Paul Badger -
Changed lines 19-20 from:
\\y: any variable type or constant
to:
//y: any variable type or constant
July 16, 2007, at 12:45 PM by Paul Badger -
Changed lines 18-19 from:
x: any variable type \\y: any variable type or constant
to:
x: any variable type
\\y: any variable type or constant
July 16, 2007, at 12:45 PM by Paul Badger -
Changed lines 18-20 from:
x: any variable type\\
y: any variable type or constant
to:
x: any variable type \\y: any variable type or constant
July 16, 2007, at 12:45 PM by Paul Badger -
Changed line 18 from:
x: any variable type
to:
x: any variable type\\
July 16, 2007, at 12:45 PM by Paul Badger -
Changed line 26 from:
x *= 10; // x now contains 30
to:
x *= 10; // x now contains 30
July 16, 2007, at 12:44 PM by Paul Badger -
Changed lines 5-6 from:
Perform a mathematical operation on a variable with another constant or variable. The += (et al) operators are just a convenient shorthand for the expanded syntax below.
to:
Perform a mathematical operation on a variable with another constant or variable. The += (et al) operators are just a convenient shorthand for the expanded syntax, listed below.
Changed lines 10-13 from:
x+=2; // equivalent to the expression x = x + 2;
x-=2; // equivalent to the expression x = x - 1;
x*=2; // equivalent to the expression x = x * 2;
x/=2; // equivalent to the expression x = x / 2;
to:
x += y; // equivalent to the expression x = x + y;
x -= y; // equivalent to the expression x = x - y;
x *= y; // equivalent to the expression x = x * y;
x /= y; // equivalent to the expression x = x / y;
Changed lines 18-19 from:
x: any variable type
to:
x: any variable type
y: any variable type or constant
Changed lines 24-27 from:
x++; // x now contains 3
x--; // x contains 2 again@]

to:
x += 4; // x now contains 6
x -= 3; // x now contains 3
x *= 10; // x now contains 30
x /= 2; // x now contains 15
@]

July 16, 2007, at 12:27 PM by Paul Badger -
!! += , -= , *= , /=

!!!!Description

Perform a mathematical operation on a variable with another constant or variable. The += (et al) operators are just a convenient shorthand for the expanded syntax below.

!!!!Syntax

[@
x+=2; // equivalent to the expression x = x + 2;
x-=2; // equivalent to the expression x = x - 1;
x*=2; // equivalent to the expression x = x * 2;
x/=2; // equivalent to the expression x = x / 2;
@]

!!!!Parameters

x: any variable type

!!!!Examples

[@x = 2;
x++; // x now contains 3
x--; // x contains 2 again@]