Get only first 10 items of an array

Hi,

I have let's say 50 items in an array variable, I would like to create a new variable that contains the array values up to the 10th item.

wondering if there's a way to achieve this without using a for loop

thanks!

2 replies