Is there any way to create an if statement where the condition is checking if a certain item from a list was clicked/selected?
Sure... are you doing it inside the click event?
I think this is what you want?
You're lucky as I was actually using this in a project today.
Ok. Here's a simplified example of what I am trying to do. Why won't indexOne and indexTwo increase by one?