**INC** __Variable__

Increments a variable.

__Variable__ can be any target of an assignment, but must be numeric.

It is the exact equivalent of

__Variable__ = __Variable__ + 1

or

__Variable__ += 1

X=7IncX

```
8
```

DimAAsFloat[3,3]X=2Y=1A[X,Y]=PiIncA[X,Y][X,Y]

```
4.14159265359
```

Here is a longer example in the terminal modus of Gambas:

StaticPublicSubMain()DimxAsFloatDimyAsFloatDimposAsIntegerDimnegAsIntegerDimnulAsIntegerpos=0neg=0nul=0Forx=1To100y=Rnd(-5,5)SelectCaseSgn(y)Case0Incnul 'the same as nul = nul + 1Case1IncposCase-1IncnegEndSelectNext,pos,negEnd