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.
Hi thebuilder, welcome to Thunkable!
Be sure to check out How to ask Great Questions v2.0, the Community Guidelines, and our Getting Started Guide 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?
You could copy it from the top of your browser.
This way we could find the best solution for you.
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".
Hi Matt, Thanks for helping out.
Here is the link: Thunkable
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.
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.
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.
We tried your solution and renamed and reuploaded all the files with a similar naming convention. we are getting the result attached.
Here is project link for your reference:
https://x.thunkable.com/projects/673e100c323290c3300887ea/b2db9a42-c9c0-4de3-87b2-b006c38d0410/blocks
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.
Thank you we have solved the issue. We appreciate your help.