Is there a way to check if a scoreboard = to a data

I want to make a datapack with abilities that you can set your slot to it and is there a way to check id player score = to his SelectedItemSlot?

Continue to help post