Difference between revisions of "Core.Terms.ListContainsValue"
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
{{ClassificationActivity | ListContainsValue | Checks whether a value in a list is found | [[Term]] | [[Core|OTX Core library]] | [[List realed terms]] | - | - }} | {{ClassificationActivity | ListContainsValue | Checks whether a value in a list is found | [[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;"> | ||
| − | + | BooleanTerm = ListContainsValue(ListTerm, Term); | |
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 06:59, 4 February 2015
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 | - |
| 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. |
Examples
List<integer> list = {1,2,3}
Boolean result = ListContainsValue(1)
//Returns result = true