Retrieve values from an array at specified indices
[10, 20, 30, 40, 50]
.array
input.2
(or an Array Block with values [0, 2, 4]
) and connect it to the Index Block’s indicies
input.output
will be 30
(or [10, 30, 50]
if using an array of indices).Can I use negative indices?
What happens if I provide duplicate indices?
[10, 20, 30]
and indices [0, 1, 1]
, the output will be [10, 20, 20]
.How does the invert option work?
[10, 20, 30, 40, 50]
and indices [1, 3]
, the output with invert enabled would be [10, 30, 50]
.