getvalueatindex

Retrieves a value from a vector.

Syntax

getvalueatindex(vector_name, index)

Input

vector_name
The variable name of the vector to be accessed.
index
The index of the value to be returned.

Example

Template:
{a = 0:10:1}
{getvalueatindex(“a”, 3)}

Output:

3

Comments

This function is equivalent to using the [] operator, but is faster for large amounts of data.