How do I add to a variable?

i.e.

variable + 1;

For some reason that doesn’t work. I think I’m derping really hard right now.

You have to actually assign the value to something otherwise the operation would simply waste time:

variable = variable + 1;
//or
//there's a special operator for incrementing by 1;
variable++;
++variable;