# 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-4d10cb81d87d320879664e10621ff43c8e7e9bf2%2Ftext_value.png?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-d697c70469be2d84d30ad6a2c3a63bd9a412b829%2Ftext_value_example.png?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-4a35c535a90cda33e001817365d11129affb0f3f%2Ftext_quote.png?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-de938c7b9c1dafb4b98ba7d8e5d6c84e73f80e17%2Ftext_eval.png?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-283bf2b043f075831984678a1b6464ee12bc176a%2Ftext_print.png?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.

**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-f686929b02cf227f6364c324c38a6100411febe8%2Ftext_print_example.png?alt=media" alt=""><figcaption><p>Logging messages</p></figcaption></figure></div>
