Difference between revisions of "Core.Terms.ListGetLength"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
{{ClassificationActivity | ListGetLength | Number of elements in the list | [[Term]] | [[Core|OTX Core library]] | [[List realed terms]] | - | - }} | {{ClassificationActivity | ListGetLength | Number of elements in the list | [[Term]] | [[Core|OTX Core library]] | [[List realed terms]] | - | - }} | ||
− | == | + | == OTL Syntax == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | IntegerValue = ListGetLength(ListTerm); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 21: | Line 21: | ||
|} | |} | ||
− | == Examples == | + | == OTL Examples == |
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | List< | + | List<Integer> list = {1,2,3}; |
− | Integer result = ListGetLength(list) | + | Integer result; |
+ | result = ListGetLength(list) | ||
//Returns result = 3 | //Returns result = 3 | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 06:57, 4 February 2015
Contents
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
IntegerValue = ListGetLength(ListTerm);
Description
ListGetLength is a term, which returns the number of elements in the list as a result.
![]() |
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.
![]()
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
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