GETVALBYINDEX

Metadata Instruction: Access value corresponding to an index from a list.
Edited by: Shubhali Agarwal

Use Cases - When to use this command

Description

GETVALBYINDEX is used to extract a value from the specified index of a list (array or string) and store the result in the specified destination variable.

Guidelines for Usage:

How to use this command

GETVALBYINDEX command is for node level operations. It can be used in any node as an instruction, except for the root node. It should not be used on the Arrows.

Let's take an example: GETVALBYINDEX '3' $src_list $index_val
Here, "$src_list" has been declared as an array of strings and is equal to = [“This”,”is,”a”,”sample”,”string”]
It will result in $index_val equals to “sample”

Examples

Simulated Metadata Editor
processing icon
Analytics API Call Body
Analytics API Response Body