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

Gets 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. 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

Gets 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.

Checker rules
CheckerRule.Util_Chk003 - Type-safe ListIndexOf and ListIndexOfAny
Syntax
IntegerTerm = Util.ListIndexOf(ListTerm list, Term value);
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.

OpenTestSystem.Otx.Extensions.Util.Terms.ListIndexOf.value
Term value
Cardinality [1] The value whose index in the List shall be determined.
Definition: Util.cs:685
OpenTestSystem.Otx.Extensions.Util.Terms.ListIndexOf.list
ListTerm list
Cardinality [1] The List which shall be checked for the value.
Definition: Util.cs:675