Just set the value to the result of the comparison:
button4.Visible = PlayersLevel > 1;
button5.Visible = PlayersLevel > 2;
solved 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;
solved How to make code more simple (if/else) [closed]