How to make code more simple (if/else) [closed]

Just set the value to the result of the comparison:

button4.Visible = PlayersLevel > 1;
button5.Visible = PlayersLevel > 2;

Leave a Comment