> 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="https://1776027180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsSE1iwGRAGqUrb5YXfFa%2Fuploads%2Fgit-blob-837cdeda21e7da5f24eddaedbe40afd32b6d74cd%2Ftext_value.svg?alt=media" 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="https://1776027180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsSE1iwGRAGqUrb5YXfFa%2Fuploads%2Fgit-blob-a25a8316efe68cf5740ec4a94293d471b10462db%2Ftext_value_example.svg?alt=media" alt=""><figcaption><p>Text value creation</p></figcaption></figure></div>

## quote

<div align="left"><figure><img src="https://1776027180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsSE1iwGRAGqUrb5YXfFa%2Fuploads%2Fgit-blob-bd21f9ea01940dff57ebe53ace18eee368d2d200%2Ftext_quote.svg?alt=media" 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="https://1776027180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsSE1iwGRAGqUrb5YXfFa%2Fuploads%2Fgit-blob-b4d205dd23399d3b3ccf3a286966932a2ecc46f6%2Ftext_eval.svg?alt=media" 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="https://1776027180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsSE1iwGRAGqUrb5YXfFa%2Fuploads%2Fgit-blob-bfa225e8612aac51e6eaf2a918148d2843a40f91%2Ftext_print.svg?alt=media" alt=""><figcaption></figcaption></figure></div>

Sends a log message to the MQTT broker. Messages appear on the device details page for monitoring and debugging, and in the Emulator's logs panel when the script runs in the [Emulator](https://docs.uniot.io/platform/sandbox/emulator.md#logs).

**Parameters:**

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

**Example:**

<div align="left"><figure><img src="https://1776027180-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsSE1iwGRAGqUrb5YXfFa%2Fuploads%2Fgit-blob-339b8f8e44139e6d08beec6bc64713669e583d6a%2Ftext_print_example.svg?alt=media" alt=""><figcaption><p>Logging messages</p></figcaption></figure></div>
