Feel free to laugh at me for this one, but I was building a rather complicated mod for a game and when I was trying to make so that when you hit a button it started a repeat loop. Unfortunately I couldn't figure out how to change the value of an int that was already set. I tried counter++ (because I used counter as a variable,) I tried to do counter.setValue, and many others. I have tried to look this up but I was unable to figure out how.
If what I was saying up there didn't make any since then basically I just want to add or subtract 1 from a variable.
Variable:
int counter = 1;

