Length
Last modified: July 9, 2025
Introduction
Basic function to determine the length of a string or a list.
length
Determines the length of a string or a list and outputs the value as an integer.
Input Parameters
The input parameters are described in the table below:
| Value | Type |
|---|---|
| String to find length of | String |
| List to find the length of | List |
Output
The output is described in the table below:
| Value | Type |
|---|---|
| Length of the string | Integer |
| Length of the list | Integer |
Examples
| Input | Output |
|---|---|
length('thisismystring') |
14 |
length($MyString) and MyString = 'qwer' |
4 |
length($MyString) and MyString is empty |
0 |
length($EntityAList) and EntityAList = '[MxObject, MxObject, MxObject]' |
3 |
length($EntityAList) and EntityAList = '[]' |
0 |