Difference between revisions of "Extensions.Util.ListIndexOfAny"
Jump to navigation
Jump to search
(Created page with "{{DISPLAYTITLE: '''ListIndexOfAny'''}}Category:Util == Classification == {{ClassificationActivity | ListIndexOfAny | UPDATING...<!--Create an event source for change even...") |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE: '''ListIndexOfAny'''}}[[Category:Util]] | {{DISPLAYTITLE: '''ListIndexOfAny'''}}[[Category:Util]] | ||
== Classification == | == Classification == | ||
− | {{ClassificationActivity | ListIndexOfAny | | + | {{ClassificationActivity | ListIndexOfAny | Gets a List of indexes of a given value in the List | [[Term]] | [[Extensions.Util|OTX Util extension]] | [[Extensions.Util#Terms|Util related terms]] | - | - }} |
== OTL Syntax == | == OTL Syntax == | ||
− | |||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | ListTerm = Util.ListIndexOfAny(ListTerm, Term); | |
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== Description == | == Description == | ||
− | + | This term shall return a list of [[Core.DataTypes.SimpleDataType.Integer|Integer]](represents Integer[]). | |
− | |||
− | + | The OTX '''ListIndexOfAny''' term is an '''otx:ListTerm''' that returns a List of indexes of a given value in the List. In case the value is not contained inside the list, an empty list will be returned. | |
− | {{TermReturnValue| [[ | + | {{TermReturnValue| [[Core.DataTypes.ComplexDataType.List|List]] | The List of indexes of a given value in the List. In case the value is not contained inside the list, an empty list will be returned.}} |
== Properties == | == Properties == | ||
− | |||
{| {{TableHeader}} | {| {{TableHeader}} | ||
{{TableRowPropertiesHeader}} | {{TableRowPropertiesHeader}} | ||
− | {{TableRowPropertie1| | + | {{TableRowPropertie1| List | [[Core.DataTypes.ComplexDataType.List|List]] | [[Term]] | - | [1..1] | The List which shall be checked for the value.}} |
+ | {{TableRowPropertie2| Value | - | [[Term]] | - | [1..1] | The value whose index in the List shall be determined.}} | ||
|} | |} | ||
− | |||
== OTL Examples == | == OTL Examples == | ||
− | |||
<syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | <syntaxhighlight lang="java" enclose="div" style="font-size: medium;"> | ||
− | + | List<Integer> List1; | |
− | |||
− | |||
− | + | /// Flow | |
− | + | ||
− | + | List1 = Util.ListIndexOfAny({&AA, &AB, &AC, &AB, &AF, &AE, &AB}, &AB); | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
== See also == | == See also == | ||
[[Extensions.Util.Compare|Compare]] <br/> | [[Extensions.Util.Compare|Compare]] <br/> | ||
[[Extensions.Util.CopyByteField|CopyByteField]] <br/> | [[Extensions.Util.CopyByteField|CopyByteField]] <br/> | ||
+ | [[Extensions.Util.GetRandomNumber|GetRandomNumber]] <br/> | ||
[[Extensions.Util.IsInitialized|IsInitialized]] <br/> | [[Extensions.Util.IsInitialized|IsInitialized]] <br/> | ||
[[Extensions.Util.ListIndexOf|ListIndexOf]] <br/> | [[Extensions.Util.ListIndexOf|ListIndexOf]] <br/> |
Revision as of 11:39, 4 October 2018
Contents
Classification
Name | ListIndexOfAny |
Short Description | Gets a List of indexes of a given value in the List |
Class | Term |
Extension | OTX Util extension |
Group | Util related terms |
Exceptions | - |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
ListTerm = Util.ListIndexOfAny(ListTerm, Term);
Description
This term shall return a list of Integer(represents Integer[]).
The OTX ListIndexOfAny term is an otx:ListTerm that returns a List of indexes of a given value in the List. In case the value is not contained inside the list, an empty list will be returned.
Return Value
The Term returns the value, see table below.
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
List | The List of indexes of a given value in the List. In case the value is not contained inside the list, an empty list will be returned. |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
List | List | Term | - | [1..1] | The List which shall be checked for the value. |
Value | - | Term | - | [1..1] | The value whose index in the List shall be determined. |
OTL Examples
List<Integer> List1;
/// Flow
List1 = Util.ListIndexOfAny({&AA, &AB, &AC, &AB, &AF, &AE, &AB}, &AB);
See also
Compare
CopyByteField
GetRandomNumber
IsInitialized
ListIndexOf
ListReverse
ListSort
Max
Min
StringFormat