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.
Syntax
len(value)
Parameters
- object value- The starting object.
Results
- int - 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.