Growing from multiple if/else chains to a database

Hi there,

I’ve made a sample app that uses three images and three sounds to implement the kind of effect you’re talking about.
While you’ll have to rename your original files, you will see that the blocks themselves are very simple. The only thing you’ll need to change are the items of List.
Just make sure that the correct images and sound files are named accordingly! You may want to name them more descriptively than I have. I used the suffix ‘P’ for pictures and ‘S’ for sounds.
I used a List Viewer so that users could only pick from a pre-determined list of text items. For a longer list of items, you could pair this with a Search bar.

Let me know if that works for you, or if you have any questions. :slight_smile:

2 Likes