Core.Terms.MapGetSize

From emotive
Jump to navigation Jump to search

Classification

Name MapGetSize
Short Description Number of elements in the map
Class Term
Extension OTX Core library
Group Map related terms
Exceptions -
Checker Rules -
Standard Compliant Yes

OTL Syntax

IntegerTerm = MapGetSize(MapTerm);

Description

MapGetSize is a term, which returns the number of elements in the map 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
Integer Return of the number of elements of the map

Properties

Name Data Type Class Default Cardinality Description
MapTerm Map Term - [1] Map which to be calculated

OTL Examples

Map<Integer, String> map = {{1:"text1"}, {2:"text2"}};
Integer result;
result = MapGetSize(map);
//Returns result = 2

See also

MapContainsKey
MapContainsValue
MapGetKeyList
MapGetValueList
MapCopy