Core.Terms.ListGetLength

From emotive
Jump to navigation Jump to search

Classification

Name ListGetLength
Short Description Number of elements in the list
Class Term
Extension OTX Core library
Group List realed terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

IntegerTerm = ListGetLength(ListTerm);

Description

ListGetLength is a term, which returns the number of elements in the list as a result.

Exclamation.png Important: Please keep in mind that this TermActivity in the form of an activity exists and no text can be entered. According to the respective ActionNode can further properties are added.

Return Value

The Term returns the value, see table below.

Icons Note.png In OTX, Terms are categorized according to its return data type!
Data Type Description
[[[Core.DataTypes.SimpleDataType.Integer|Integer]] Return of the number of elements of the list

Properties

Name Data Type Class Default Cardinality Description
List List Term - [1] Source List

OTL Examples

List<Integer> list = {1,2,3};
Integer result;
result = ListGetLength(list)
//Returns result = 3

See also

ListContainsValue
ListCopy