---
url: /flow/guide/scripting-reference/functions/numeric/inc.md
---

# Inc

## Declaration

`procedure Inc(var X: Integer); overload`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
var i : integer
begin
i := 0;
  while i < 10 do
begin
LogInfo('i is equal to '+IntToStr(i));
Inc(i);
end
end;
```

## Description

Increments an integer value by 1. This provides faster processing than using a statement like i := i + 1
