I am creating a Yahtzee program on my TI-Nspire CX, but when I get to the point of where you get to choose what you want to take points for, I don't know how to make the calculator confirm 3 of a kind, so that it would say that three of my 5 variables, a, b, c, d, and, e, each one representing a di, are equal, but the other 2 are not, how would i do this?

Yahtzee Program