2 ForEachLoops to run in parrallel and pass info to one another?

I am trying to take the first index of my first array and apply the value of the first index of second array and so on so forth until the loop is complete. Is it possible to use a foreachloop into another foreachloop like that?

Here’s what i am doing now, it changes all the values of the first array with the last value of the second array, i’d like all to change in order for the entire loop.

Thank you!

Instead of “Set” for Ingredient try “Set By-Ref Var” it will change the variable by reference (changing the original instead of making a copy entry).

1 Like

I didn’t know By-Ref Var existed, it works! Thanks!

1 Like

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

This thread has been moved to help other devs with a similar question. Thanks and happy developing! :slight_smile: