> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Print function for debug output

> Use the Print function in Advanced pre-search and post-search relations to output debugging information about hypotheses in the FlexiLayout language.

In the **Advanced pre-search relations** and **Advanced post-search relations** sections, you can use the `Print` function to print information about certain properties of the formulated hypotheses.

## Print function syntax

The `Print` function has the following format:

```text theme={null}
Void Print( String text )
```

## String formatting functions

The FlexiLayout language has global functions that create string representations of various types and print debugging information. For more information, see [Global functions](/flexi-capture/fls/language/global-functions#string-functions).

The global `Chr( Int char )` function returns a string representation of a character by its Unicode code. Use it to format printed lines with tab characters, carriage returns, and so on.

## Print function examples

Examples of calling the `Print` function:

```text theme={null}
Print: Str( Group1.Item1.Width );
Print: "Is Item1 Null ? - " + Str( Group1.Item1.IsNull );
Print: "Calculate formula: ( 5 * 18 );" + Chr( 13 ) +Chr( 10 ) + "Result is: " + Str( 5 * 18 ) + Chr( 9 ) + "// example";
Print: Str( Group1.Item1.Rect );
```

## Debug output location

Calling the `Print` function several times in a row in one of the **Advanced…** sections will print text consisting of several lines. The text will be printed in the **Properties** window of the active hypothesis in the **Pre-search print** and **Post-search print** properties.
