How to get odd or even position variables from array of string


Say I have array as below
ArrStr = {“abc”, “xyz”, “uvw”, “ijk”, “mno”, “pqr”}

I need to print only the even position variables.
ArrStrEven = {“xyz”, “ijk”, "pqr’}

Please advise how to get like this?

even_position_array.xaml (6.9 KB)

Thanks for the response, it works,
Can you please advise, how I can store the output in an array again.
As we are getting the output string in for each, it is easy to print. but how to store all the output strings in an array?

even_position_array.xaml (12.4 KB)

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.