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:

ValueType
String to find length ofString
List to find the length ofList

Output

The output is described in the table below:

ValueType
Length of the stringInteger
Length of the listInteger

Examples

InputOutput
length('thisismystring')14
length($MyString) and MyString = 'qwer'4
length($MyString) and MyString is empty0
length($EntityAList) and EntityAList = '[MxObject, MxObject, MxObject]'3
length($EntityAList) and EntityAList = '[]'0