New to Arduino

New to Arduino, I am able to pick up code pretty quick but since I am working on a specific project currently I just have a small question.

I am basing my code off of this since I am still learning

So basically I am going to be setting presets for the two channels, instead of just toggling off and on, I want to be able to hold a certain variable. (It's a dimming circuit) So say I trigger an input, It will then set the dimmer to hold 50% statically not moving. What I currently understand is that it will fire channel 1 to full brightness, then turn it off, then repeat on channel 2.

So in this code below

// Serial.println(pulseIn(8, HIGH));

for (i=85;i>5;i--)
{
dimming=i;
delay(20);
}

for (i=5;i<85;i++)
{
dimming=i;
delay(20);
}

Would i be changing variable here to static or something, I can't quite grasp how I can accomplish this

What is :

dimming=i;

supposed to do?

Jacques