How can I use a variable in slate to reference a specific value in an array?

Hey,

Following up from https://community.palantir.com/t/how-can-i-reference-the-index-of-my-sub-container-in-a-slate-repeating-container/447 I was able to correctly fetch the index of my sub-container. However, I’m unable to use the index to fetch values from an array. Doing the following does not work:

What is the correct way to fetch the elements from the array returned by f_function_1?

Slate uses handlebar.js for value injection. The correct syntax for looking up and index in an array based on another variable is to use the helper function lookup. Thus, the correct syntax is:

{{ lookup f_function_1 w_container_2.index }}

https://handlebarsjs.com/guide/builtin-helpers.html#lookup