Difference between revisions of "Core.Terms.MapContainsValue"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{DISPLAYTITLE:OTX '''MapContainsValue'''}}[[Category:Core]] | {{DISPLAYTITLE:OTX '''MapContainsValue'''}}[[Category:Core]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | MapContainsValue | Checks whether a value in a map is found | [[Term]] | [[Core|OTX Core library]] | [[Map related terms]] | - | [[CoreChk041|Core_Chk041]] }} | + | {{ClassificationActivity | MapContainsValue | Checks whether a value in a map is found | [[Term]] | [[Core|OTX Core library]] | [[Map related terms]] | - | [[Core.Validation.CoreChk041|Core_Chk041]] }} |
== OTL Syntax == | == OTL Syntax == |
Revision as of 04:14, 5 February 2016
Contents
Classification
Name | MapContainsValue |
Short Description | Checks whether a value in a map is found |
Class | Term |
Extension | OTX Core library |
Group | Map related terms |
Exceptions | - |
Checker Rules | Core_Chk041 |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = MapContainsValue(MapTerm, Term);
Description
MapContainsValue is a term, which returns true as a result, if the value specified in the map is found, false otherwise.
![]() |
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 |
Boolean | Return true if the value is found, otherwise false. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
MapTerm | Map | Term | - | [1] | Map, in which the key will be searched |
Value | - | Term | - | [1] | Expression, which is locate in the map. Is the type corresponding to the type of the values of the map. |
OTL Examples
Map<Integer, String> map = {{1:"text1"}, {2:"text2"}};
Boolean result;
result = MapContainsValue(map, "text1");
//Returns result = true
See also
MapContainsKey
MapGetSize
MapGetKeyList
MapGetValueList
MapCopy