Checking if three values are the same?

I have three variables -Number 1 Number 2 Number 3.

Is there a way to check if anyone of those three variables are the same without too much code? The only way I know how would be to use a cluster of IF statements (if number 1 == number 2) but that takes up a silly amount of lines.

you should focus on making it right before making it pretty…

what’s the big deal with a few extra lines? the underlying code will most likely be similar or the same.

if ((Number1 == Number2) || (Number1 == Number3) || (Number2 == Number3))
{
    //...
}