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

What is Framer? Join the Community
Return to index
Dave Crow
Posted Apr 18 - Read on Facebook

I'm doing a little exercise to level up my skills working with loops and arrays. I'm confused as to why the rowIsHeader variable doesn't work. But when I drop the value of rowIsHeader into the conditional it works fine.


David Louie

You variable i is only avaiable (scoped) to the block of code that's nested in the for loop since it's declared there.

Dave Crow

Ahh...duh! So obvious now that you say it. But that's why I'm doing this exercise.

Read the entire post on Facebook