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

ListIndexOf is an IntegerTerm that returns the first index of a given value in the List. More...

Inheritance diagram for OpenTestSystem.Otx.Extensions.Util.Terms.ListIndexOf:
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. If the value represents a reference, then it is tested whether the reference is part of the List or not. 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

ListIndexOf is an IntegerTerm that returns the first index of a given value in the List.

The ListIndexOf activity is an IntegerTerm that returns the first index of a given value in the List. In case the value is not contained inside the list, -1 will be returned. ListIndexOf behavior should be based on the util:Compare functionality.

Syntax
IntegerTerm = Util.ListIndexOf(ListTerm list, Term value);
Term value
Cardinality [1] The value whose index in the List shall be determined. If the value represents a refe...
Definition: Util.cs:641
ListTerm list
Cardinality [1] The List which shall be checked for the value.
Definition: Util.cs:631
Examples
// Local Declarations
Integer Integer1;
// Flow
Integer1 = Util.ListIndexOf({&AA, &AB, &AC}, &AB);

Member Data Documentation

◆ list

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

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

◆ value

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

Cardinality [1]
The value whose index in the List shall be determined. If the value represents a reference, then it is tested whether the reference is part of the List or not.