PICKZEN
Search
K

TRUNC

The TRUNC function truncates a list or text string.

Syntax

TRUNC(object, [count])
Argument name
Description
object
Required
List of items or text string to be truncated.
count
Required
Number of items, or characters to retain.

Examples

If:
  • list = [a, b, c, d]
  • name = 'John Smith'
When the following functions are executed:
Results will be:
  • out1 = [a, b]
  • out2 = 'John'
Last modified 3yr ago