# Unable to set Logic blocks for Slider for number of images (apples) in a learning app

**URL:** <https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444>\
**Category:** Issues / Bugs\
**Created:** [November 27, 2024, 7:38pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444 "2024-11-27T19:38:51Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![thebuilder](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@thebuilder](https://community.thunkable.com/u/thebuilder)\
**Post date:** [November 27, 2024, 7:38pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/1 "2024-11-27T19:38:51Z")

</div>

![Screenshot 2024-11-27 223503](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/e/cea9ca10bb10eca302f19d224c285cb00a562c6d.png)  
Im Unable to set Logic blocks for Slider for number of images (apples) in a learning app as can be seen in thr attached. I’m using ChatGPT as a guide but it seems its not updated with the way Thunkable’s logic works. Appreciate any help with steps to make the number slider represent the correct number of apples.

---

<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:** [November 27, 2024, 8:25pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/2 "2024-11-27T20:25:01Z")

</div>

Hi thebuilder, welcome to Thunkable! 🎉

Be sure to check out [How to ask Great Questions v2.0](https://community.thunkable.com/t/how-to-ask-great-questions-v2-0/2689983/1), the [Community Guidelines](https://community.thunkable.com/t/community-guidelines/78/8), and our [Getting Started Guide](https://docs.thunkable.com/getting-started/get-started) to make the best of your Thunkable Community experience!

I’m having trouble replicating this issue in my own projects.

Could you please share the specific project URL with us so we can investigate it further?

![](https://downloads.intercomcdn.com/i/o/759644115/d4a89684a0bda74ab75c59e6/Screenshot+2023-06-08+at+4.13.55+PM.png)

You could copy it from the top of your browser.

This way we could find the best solution for you.

---

<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:** [November 28, 2024, 12:37am UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/3 "2024-11-28T00:37:25Z")

</div>

Are you trying to display images named 1 apple.jpg, 2 apple.jpg, 3 apple.jpg, etc.? If so, you need to use a Join block from the Text drawer and join the green `value` block to the text string " apple.jpg".

---

<div class="post-metadata">

**Author:** ![thebuilder](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@thebuilder](https://community.thunkable.com/u/thebuilder)\
**Post date:** [November 28, 2024, 7:57pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/4 "2024-11-28T19:57:26Z")

</div>

Hi Matt, Thanks for helping out.  
Here is the link: [Thunkable](https://x.thunkable.com/projects/673e100c323290c3300887ea/c82f8a64-0de1-437b-8708-92e6569855a1/blocks)

---

<div class="post-metadata">

**Author:** ![thebuilder](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@thebuilder](https://community.thunkable.com/u/thebuilder)\
**Post date:** [November 28, 2024, 8:02pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/5 "2024-11-28T20:02:31Z")

</div>

Hi Tatiang,

Thanks for helping. Yes that’s what I’m trying to do. I’ve attached another screenshot. Not sure where to add the 10 different image files. And then make the slider work.

 ![SS2](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/48e554000c20339e615816018337d2dddb2ba190.png)

---

<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:** [November 28, 2024, 9:15pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/6 "2024-11-28T21:15:46Z")

</div>

Set Image1’s Picture to join `value` with " apple.jpg". Upload your image files as assets in the Design tab. If your assets have a space in the name, you need to include a space before apple.jpg.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/0/e030eb0427d4b5458c166ea1855610d6cf02e708.png)

---

<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:** [November 28, 2024, 9:18pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/7 "2024-11-28T21:18:10Z")

</div>

The problem is that you’re not consistent with your filenames. You have .jpg, .jpeg, .png, apple, apples, aplles… they need to all have the same structure as “# apple.jpg”. I can understand wanting a plural name but I recommend keeping it simple and not doing that.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/3/c353afe7dfbf5b7a4eb54bd00b4c67cc25645a94.png)

---

<div class="post-metadata">

**Author:** ![thebuilder](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@thebuilder](https://community.thunkable.com/u/thebuilder)\
**Post date:** [November 29, 2024, 2:04pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/8 "2024-11-29T14:04:57Z")

</div>

We tried your solution and renamed and reuploaded all the files with a similar naming convention. we are getting the result attached.

 ![SS4](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/281179722c0e78b187932855df81584db4721f79.png)  
 ![SS3](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/5797917ca9a382e9539632d83b9995903c50d9eb.png)

Here is project link for your reference:  
[https://x.thunkable.com/projects/673e100c323290c3300887ea/b2db9a42-c9c0-4de3-87b2-b006c38d0410/blocks](https://x.thunkable.com/projects/673e100c323290c3300887ea/b2db9a42-c9c0-4de3-87b2-b006c38d0410/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:** [November 29, 2024, 5:29pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/9 "2024-11-29T17:29:43Z")

</div>

Please review my screenshot above. You’re adding a 1 to the join block that doesn’t need to be there.

Think of the join block as a little like fill-in-the-blank. So what I suggested is \_\_\_ apple.jpg. When the value of the switch is 1, that will be 1 apple.jpg. When it’s 6, that will be 6 apple.jpg. Those should match the filenames of the images in your project. What you are currently doing is \_\_\_1 apple.jpg. When the value of the switch is 1, that will be 11 apple.jpg. When it’s 6, that will be 61 apple.jpg. You don’t have filenames set up that way and it’s a mistake so it won’t work properly.

---

<div class="post-metadata">

**Author:** ![thebuilder](https://avatars.discourse-cdn.com/v4/letter/t/a587f6/32.png) [@thebuilder](https://community.thunkable.com/u/thebuilder)\
**Post date:** [November 29, 2024, 6:12pm UTC](https://community.thunkable.com/t/unable-to-set-logic-blocks-for-slider-for-number-of-images-apples-in-a-learning-app/3372444/10 "2024-11-29T18:12:20Z")

</div>

Thank you we have solved the issue. We appreciate your help.
