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

# global — Global variable

Global declares a variable as global.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Variable name |

### Children
- (none)

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

### Result
- binding: var; type: n/a; predicate: no-result-propagation

### Examples

```xml
<global var="name"/>

<function var="outputName">
	<output>$name</output>
</function>

<set var="name">iXML</set>
<call func="outputName"/>

<!-- iXML -->
```

```xml
<global var="name"/>

<function var="setName">
	<set var="name">iXML</set>
</function>

<call func="setName"/>
<output>$name</output>

<!-- iXML -->
```
