---
name: "step"
type: command
status: ok
groups: ["Program Flow"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/step
revid: 369298
updated: 2024-09-03T18:42:52Z
---

# step

*Command · Program Flow · Arma 3 v0.50 · introduced in Armed Assault v1.00*

## Description

Optional step value. A countdown can be made with a negative value. If not set, the default step is 1.

## Syntax

```sqf
for step stepSize
```

**Parameters:**

- `for`: [For Type](../topics/For_Type.md)
- `stepSize`: [Number](../topics/Number.md)

**Returns:** [For Type](../topics/For_Type.md)

## Examples

### Example 1

```sqf
for "_i" from 20 to 10 step -2 do
{
    // ...
};
```

## See also

[Control Structures](../topics/Control_Structures.md)

<sub>Source: [BI Community Wiki — step](https://community.bistudio.com/wiki/step) (revision 369298).</sub>
