Well this is weird, I used a user variable named setwinner with the value IF(tennis_player1_setsc1>tennis_player2_setsc1,1,2)
And in this game, tennis_player1_setsc1 is indeed greather than tennis_player2_setsc1, and my variable shows result 2, meaning that it's false. What is going on here?