OTX Reference  
OpenTestSystem.Otx.Extensions.Util.Terms.ListIndexOfAny Class Reference

ListIndexOfAny is an otx:ListTerm that returns a List of indexes of a given value in the List. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Util.Terms.ListIndexOfAny:
Inheritance graph

Public Attributes

ListTerm list
 Cardinality [1]
The List which shall be checked for the value. More...
 
Term value
 Cardinality [1]
The value whose index in the List shall be determined. More...
 
- Public Attributes inherited from OpenTestSystem.Otx.Core.Terms.Term
MetaData metaData
 Cardinality [0..1]
The MetaData type allows tools to store additional, mainly tool-specific data. More...
 

Detailed Description

ListIndexOfAny is an otx:ListTerm that returns a List of indexes of a given value in the List.

The ListIndexOfAny activity 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.

Syntax
ListTerm = Util.ListIndexOfAny(ListTerm list, Term value);
ListTerm list
Cardinality [1] The List which shall be checked for the value.
Definition: Util.cs:325
Term value
Cardinality [1] The value whose index in the List shall be determined.
Definition: Util.cs:335
Examples
// Local Declarations
List<Integer> List1;
// Flow
List1 = Util.ListIndexOfAny({&AA, &AB, &AC, &AB, &AF, &AE, &AB}, &AB);

Member Data Documentation

◆ list

ListTerm OpenTestSystem.Otx.Extensions.Util.Terms.ListIndexOfAny.list

Cardinality [1]
The List which shall be checked for the value.

◆ value

Term OpenTestSystem.Otx.Extensions.Util.Terms.ListIndexOfAny.value

Cardinality [1]
The value whose index in the List shall be determined.