Changing int numbers with external means

Ok i see where i went wrong this should get me in the right direction.
Thanks guys :slight_smile:

Now my last question.

Where i have it at the top

Int number = 0;
Int lightson1time = number;

Is that part right?

So when i change it to 12 with button pushes it will be stored as 12 and not change untell i change it again?