---
title: "array:range — Array range"
description: "iXML command array:range: Array range."
canonical_url: "https://www.zeyos.com/ixml/ref/array-range"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/array-range.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# array:range — Array range

ARRAY:RANGE creates an array with values of a given numeric range.

ARRAY:RANGE will implicitly generate a consecutive numeric key for each item of the numeric range.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Result variable name |
| from | int |  | From |
| to | int |  | To |
| step | int | 1 | Step |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var; type: array; predicate: no-result-propagation

### Examples

```xml
<array:range var="range" from="6" to="10" step="2"/>

<output>
	<array:join var="range" delimiter=", "/>
</output>

<!-- 6, 8, 10 -->
```

```xml
<array:range var="range" from="10" to="6" step="2"/>

<output>
	<array:join var="range" delimiter=", "/>
</output>

<!-- 10, 8, 6  -->
```
