> For the complete documentation index, see [llms.txt](https://chaoses-ib.gitbook.io/directory-opus/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chaoses-ib.gitbook.io/directory-opus/manual/reference/evaluator/swap.md).

# Swap

\<evalcmd> Swap && none && && value1 && var && First variable. && value2 && var && Second variable. \</evalcmd>

Swaps the values of the two variables.

//<Example://>

```
i = "World";
j = "Hello";
Swap(i, j);
Output( i + " " + j );
--> Hello World
```
