I want to add motivational words help me

hello, I would like to add motivating success stories to the application.

I will add hundreds of motivating words to the system, but every time the button is pressed, it will add another word and not add what it has already added. Is there any way I can do this?

Show You Blocks

1 Like

suppose your motivational words are images, stored in a list

blocks (1)

then you can do like -
when button is pressed get the press count,
and select item from image list with index = press count

blocks

blocks (3)

3 Likes

You can use this snippet by @Taifun to ensure you remove duplicates on each click

How to pick a random item from a list without picking duplicates?

3 Likes

thank you man