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 list, Term value);
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
/// Local Declarations
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