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

# next — Next

NEXT skips the rest of the current branch or loop iteration and continues with the execution of the next consecutive branch or loop iteration, though leaping over arbitrary levels of nested control statements.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| leap | int |  | Leap |

### Children
- (none)

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

### Result
- (none documented)

### Examples

```xml
<set var="firstname">Steve</set>
<set var="lastname">Gates</set>

<switch value="$lastname">
	<case value="Gates">
		<if value1="$firstname" func="=" value2="Steve">
			<next/>
		</if>

		<output>My name might be Bill Gates!</output>
	</case>

	<case value="Jobs">
		<output>My name might be Steve Jobs!</output>
	</case>
</switch>

<!-- My name might be Steve Jobs! -->
```

```xml
<set var="count">0</set>

<while value1="$count" func="&lt;" value2="9">
	<math:inc var="count"/>

	<if value1="$count" func="=" value2="5">
		<next/>
	</if>

	<output>$count</output>
</while>

<!-- 12346789 -->
```

```xml
<array var="names">
	<item>Bill Gates</item>
	<item>Steve Jobs</item>
</array>

<foreach var="names" var_value="name">
	<if value1="$name" func="=" value2="Bill Gates">
		<next/>
	</if>

	<output>$name</output>
</foreach>

<!-- Steve Jobs -->
```
