> For the complete documentation index, see [llms.txt](https://help.pickzen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.pickzen.com/guides/nocode/functions/trunc.md).

# TRUNC

The TRUNC function truncates a list or text string.

### Syntax

**TRUNC(object, \[count])**

| Argument name                                 | Description                                   |
| --------------------------------------------- | --------------------------------------------- |
| <p><strong>object</strong></p><p>Required</p> | List of items or text string to be truncated. |
| <p><strong>count</strong></p><p>Required</p>  | Number of items, or characters to retain.     |

### Examples

If:

* &#x20;list = \[a, b, c, d]
* name = 'John Smith'

When the following functions are executed:&#x20;

![](https://1947171238-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrTaL6FQB3RzlkCwQfN%2F-MA6AmpHJXPAE6VUkj2-%2F-MA6BsxGKFkt-ygmlBxK%2Fimage.png?alt=media\&token=dc8202ee-6a1c-4bd6-ad73-f554fb40361c)

Results will be:

* out1 = \[a, b]
* out2 = 'John'
