encoder

Hi, I am trying to figure out the purpose of below programing.
does anyone know what this commend for? Especially the commends in bold letters.
void loop() {
n = digitalRead(encoder0PinA);
if ((encoder0PinALast == LOW) && (n == HIGH)) {
** if (digitalRead(encoder0PinB) == LOW) {** encoder0Pos--;
} else {
encoder0Pos++;
}
Serial.print (encoder0Pos);
Serial.print ("/");
}
encoder0PinALast = n; }

// encoder0Pos holds the position for encoder0
// encoder0PinA is the pin that encoder0 is connected to
// encoder0PinALast is the last processed state of encoder0

void loop() {
n = digitalRead(encoder0PinA); // n is current state of encoder0PinA pin
if ((encoder0PinALast == LOW) && (n == HIGH)) { // check if encoder0PinA pin has changed state
if (digitalRead(encoder0PinB) == LOW) {
encoder0Pos--; // if it has changed and its now low decrement encoder0Pos;
} else {
encoder0Pos++; // if it has changed and its now high, increment encoder0Pos
}
Serial.print (encoder0Pos);
Serial.print ("/");
}
encoder0PinALast = n; } // set the variable holding the previous state to the value n read above