# Text

Text blocks handle string operations and text-based data. Use these blocks to create text values, convert between strings and numbers, evaluate expressions, and send log messages.

## value

<div align="left"><figure><img src="/files/JEZdb1JJCpFpqH7bVWQk" alt=""><figcaption></figcaption></figure></div>

A text string constant. Use this block to create fixed text values for labels, messages, or event names.

**Parameters:**

* **Value** (String): Enter any text

**Returns:**

* **String**: The text value

**Example:**

<div align="left"><figure><img src="/files/KVtdN9XWH9HStPnCH3Dq" alt=""><figcaption><p>Text value creation</p></figcaption></figure></div>

## quote

<div align="left"><figure><img src="/files/Lk0rIQa3aiTTj8dPee5v" alt=""><figcaption></figcaption></figure></div>

Converts an expression or value into a string representation without evaluating it. Useful for capturing code as text.

**Parameters:**

* **Expression**: The value or expression to convert

**Returns:**

* **String**: The expression as text

## eval

<div align="left"><figure><img src="/files/xtqI3y2L5xmYXerAKu9C" alt=""><figcaption></figcaption></figure></div>

Evaluates a text string as UniotLisp code and returns the result. Use this to execute dynamic code or parse text-based expressions.

**Parameters:**

* **Expression** (String): Text containing UniotLisp code to evaluate

**Returns:**

* **Any**: The result of evaluating the expression

## print

<div align="left"><figure><img src="/files/iAfBxI1rPr3zBeU8T1J0" alt=""><figcaption></figcaption></figure></div>

Sends a log message to the MQTT broker. Messages appear on the device details page for monitoring and debugging.

**Parameters:**

* **Message** (String): The text to log

**Example:**

<div align="left"><figure><img src="/files/TJcLoLfiWubhgyiX6Wtn" alt=""><figcaption><p>Logging messages</p></figcaption></figure></div>


---

# 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.uniot.io/platform/sandbox/visual-editor/text.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.
