the key here is that you can use a boolean variable to trigger the action of a single button, but for a list of buttons you also need to know which button in the list has been clicked.
You can do this by using an object. It’s the same principle of keeping track of inputs inside a colletion list. Have a look at this post and this post
1 Like