FANDOM


Icon Warning  EXPERIMENTAL  Icon Warning
This article or section contains experimental features. Use caution when implementing them, as they may be removed or changed at any time.

The increment operator is a special case of addition, and adds the fixed value 1 to a variable. This cannot be used on literals or constant variables. This operator is a single instruction by itself and can only be used on one variable at a time.

FDS Edit

Example Edit

FiM got one more.
Icon Warning There was one more Pinkie Pie.
Icon Warning add 15 Icon Warning to Pinkie Pie.

This adds 1 to the variable FiM and then to Pinkie Pie, and then adds 15 to Pinkie Pie.

Its Java equivalent is as follows:

FiM++;
++PinkiePie;
PinkiePie += 15;

See Also Edit


Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.