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

# break — Break-off

BREAK breaks out of the current control flow and continues with the execution outside the paternal control statement, 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="count">0</set>

<while>
	<output>$count</output>
	<math:inc var="count"/>

	<if value1="$count" func="=" value2="10">
		<break/>
	</if>
</while>

<!-- 0123456789 -->
```

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

<foreach var="names" var_value="name">
	<output>$name</output>

	<if value1="$name" func="=" value2="Bill Gates">
		<break/>
	</if>
</foreach>

<!-- Bill Gates -->
```
