> For the complete documentation index, see [llms.txt](https://docs.uniot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.uniot.io/platform/sandbox/visual-editor/text.md).

# 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>
