cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Zachariah
Frequent Visitor

Stuck in how to use an array of indices to pull strings from another array

I am trying to work out how use an array of indexes to pull strings from the corresponding position in another array.

 

For example:

 

arrayIndices = [0,4,6]
StringArray = ["string 1", "string 2", "string 3", "string 4", "string 5", "string 6", "string 7"]

resultsArray = []

 

 

The desired result would be:

 

 

resultArray = ["string 1" "string 5", "string 7"]

 

 

I am not sure how to achieve this in PowerUltimate.  Could I achieve it via nesting an apply to each loop in another apply to each loop?

Would that be the best approach?

1 ACCEPTED SOLUTION

Accepted Solutions
Paulie78
Super User
Super User

Like this:

2022-07-04_16-39-22.png

Blog: tachytelic.net

YouTube: https://www.youtube.com/c/PaulieM/videos

If I answered your question, please accept it as a solution 😘

View solution in original post

1 REPLY 1
Paulie78
Super User
Super User

Like this:

2022-07-04_16-39-22.png

Blog: tachytelic.net

YouTube: https://www.youtube.com/c/PaulieM/videos

If I answered your question, please accept it as a solution 😘

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (1,784)