# \[Solved\] How does cloning work?

**URL:** <https://community.thunkable.com/t/solved-how-does-cloning-work/2652999>\
**Category:** Questions about Thunkable X\
**Created:** [October 19, 2023, 3:21pm UTC](https://community.thunkable.com/t/solved-how-does-cloning-work/2652999 "2023-10-19T15:21:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![finbarr.mccarthytl32](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@finbarr.mccarthytl32](https://community.thunkable.com/u/finbarr.mccarthytl32)\
**Post date:** [October 19, 2023, 3:21pm UTC](https://community.thunkable.com/t/solved-how-does-cloning-work/2652999/1 "2023-10-19T15:21:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [October 19, 2023, 5:56pm UTC](https://community.thunkable.com/t/solved-how-does-cloning-work/2652999/2 "2023-10-19T17:56:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![finbarr.mccarthytl32](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@finbarr.mccarthytl32](https://community.thunkable.com/u/finbarr.mccarthytl32)\
**Post date:** [October 20, 2023, 11:55am UTC](https://community.thunkable.com/t/solved-how-does-cloning-work/2652999/3 "2023-10-20T11:55:02Z")

</div>

Thank you @tatiangtheresarn88vb

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [October 20, 2023, 2:28pm UTC](https://community.thunkable.com/t/solved-how-does-cloning-work/2652999/4 "2023-10-20T14:28:36Z")

</div>


