✅ variable wont change

switch(vars.AfterMath)
{
     //vars is a class i got w all my variables in it
     //AfterMath is a variable that stores if you won or no
     case true:
          vars.money = vars.money + (vars.betAmount * 2);
          break;
     case false:
          vars.money = vars.money - vars.betAmount;
}

then when I go run the program again it says the money is "100$" as I had it at the start and it wasent changing???
Was this page helpful?