Core.Terms.ListContainsValue
Jump to navigation
Jump to search
Contents
Classification
Name | ListContainsValue |
Short Description | Checks whether a value in a list is found |
Class | Term |
Extension | OTX Core library |
Group | List realed terms |
Exceptions | - |
Checker Rules | Core_Chk059 – type-safe ListContainsValue |
Standard Compliant | Yes |
OTL Syntax
BooleanTerm = ListContainsValue(ListTerm, Term);
Description
ListContainsValue is a term, which returns true as a result, if the specified expression list 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 |
ListTerm | List | Term | - | [1] | List, in which the term is searched |
Value | - | Term | - | [1] | Expression, which is locate in the list. Is the type corresponding to the type of the list elements. |
OTL Examples
List<integer> list = {1,2,3};
Boolean result;
result = ListContainsValue(1);
//Returns result = true