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 following feature is new in Ignition version 8.1.8
Click here to check out the other new features
The len function can now be used with lists, sets, and tuples. 

Syntax

len(value)

  • Parameters

Object value- The starting object, either a string, dataset, list, set, or tuple. 

  • Results

Integer - The length of the provided object.

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