[Solved] How does cloning work?

I read the documentation about cloning, but I’m afraid I don’t fully understand it.

Say, I have a screen with 10 buttons. Can I just create one and clone the other 9?

When I use the ‘Any button clicked’ block, does each clone have an index value in ‘Clone’? Is that how I refer to each button in blocks?

Yes.

Yes.

A clone will create a copy of the existing component in the exact same spot. All components have a screen order value (1, 2, 3…) depending on when they were added to the screen either manually via drag & drop or through clone or create blocks. So after you clone a component, you can either use the green component block to immediately reference that clone or you can find it’s index value by getting the first occurrence of that green component block in the list of all similar components in the screen and store that in a variable for later use.

1 Like

Thank you @tatiangtheresarn88vb