# Константы

## Предопределенные константы

### CYCLE

Максимальное количество итераций в цикле. По умолчанию, равно 16000000.

### DEPTH

Максимальная вложенность исполняемых блоков. Ограничивает глубину рекурсии. По умолчанию, равно 1000.

### IOTA

Конcтанта *IOTA* используется для автоматического вычисления последовательности конcтант.

```go
const IOTA * 2 {
    ZERO  // 0
    TWO   // 2
    FOUR  // 4
}
```

### SCRIPT

Константа *SCRIPT* возвращает путь текущего скрипта. Если он не был указан, то возвращается имя *run*.

```go
// compile from file: /home/ak/gentee/scripts/myscript.g
run {
    Println(SCRIPT) // /home/ak/gentee/scripts/myscript.g
}

// compile from memory
run my_best_script {
    Println(SCRIPT) // my_best_script
}
```

### VERSION

Константа *VERSION* возвращает текущую версию компилятора Gentee.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ru.gentee.org/stdlib/constants.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
