That is correct. The if statement will only be executed if all three values are different, as you have stated in your comment. If you want the if statement to execute only if all three are the same, then replace '!=' to '=='.
That is correct. The if statement will only be executed if all three values are different, as you have stated in your comment. If you want the if statement to execute only if all three are the same, then replace '!=' to '=='.
But I need the three to ALWAYS be different, I can't take a chance, as the task to be executed must be called, and the three values have to be different