# Шаг "Показать топ" с emoji

Для начала рассмотрим базовый вариант:

![](/files/-M51a66j3Nk9qj1fALR9)

![](/files/-M51_wVNWuXpHiBabMcz)

Его код:

```python
%top_pos%) [id%id_польз%|%имя%] — %баланс%
```

Чтобы вместо чисел использовать любые символы (например, emoji-числа), можно создать массив со всеми возможными значениями и использовать переменную **%top\_pos%** как индекс. Следует учесть, что индексация в массивах начинается с **нуля**, а **%top\_pos%** - с **единицы**, поэтому нужно вычесть **1** из **%top\_pos%**.

В итоге мы получим вот такой код:

```python
{{ ['1️⃣', '2️⃣', '3️⃣', '4️⃣', '5️⃣', '6️⃣', '7️⃣', '8️⃣', '9️⃣', '🔟'][%top_pos% - 1] }} [id%id_польз%|%имя%] — %баланс%
```

Вставим его в шаг:

![](/files/-M521KDXPB8_3GKdR-QU)

Проверим результат:

![](/files/-M51g0mK_aGRFI4z80mP)


---

# 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://docs.smartbot-vk.ru/smartquery/recipes/shag-pokazat-top-s-emoji.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.
