POSITION

Description

Returns the Position of an element within a vector as Scalar<Number>. The position of the element within the vector is the index of the element within the vector plus 1.

POSITION(Vector<Number>)

POSITION(vector: Vector<Number>, targetElement: Scalar<Number>): Scalar<Number>

Returns the position of the given targetElement within the given Vector.

Parameters

Parameter
Description

vector

A vector of type <Number> within we search the position of targetElement.

targetElement

The targetElement of type <Number> we are searching within given vector.

Returns

Returns the position of the searched element within the vector as Scalar<Number>.

Last updated