Skip to main content
Version: 8.3 Beta 🚧

len

This function is used by Ignition's Expression language.

Description​

Returns the length of the argument, which may be a string or a dataset. If the argument is a string, it returns the number of characters in the string. If the argument is a dataset, it returns the number of rows in the dataset. Will return zero if the argument is null.

The len function can be used with lists, sets, and tuples.

Syntax​

len(value)

Parameters​

TypeParameterDescription
ObjectvalueThe object whose length is being evaluated.

Returns​

Integer - The length of the provided object (number of characters, rows, or elements depending on the type).

Examples​

Code Snippet
len("Hello World") //Returns 11.
Code Snippet
len({Root Container.Table.data}) //Returns the number of rows in the table.