This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Alex Maximets
Posted Nov 22 - Read on Facebook

Hi everyone!
Got a quick question that's to do with converting a "for loop" into the ".foreach loop". I need to be able to target each item in my array and also associate different pages with each of those items in the array.
Appreciate your help


Jacky Lee

Also, a quick example for targeting each item in your array to do specific things:

Alex Maximets

Hi Jacky, thanks for your comment. Either way I figured it out. Rather than doing " layers= for i in [0..2] - layer = new layer" I needed to put it in an array as " for i in [0..2] - layer = layers[i] = new layer" Literally took me a week to figure it out!

Read the entire post on Facebook