General variable in loop

Hi guys,
I’m trying to control a stepper motor with feedback from a sensor, but I have a question about a variable I’m using.
I have a variable BeginSignaal, which I defined as a general variable, but in my code I change BeginSignaal to SensorSignaal if my servomotor can make atleast one turn.
But if the loop finishes does it reset BeginSignaal to the signal measured by the sensor at that moment or no?
I hope you guys understand my question.
Thanks,
Snor

#include <Stepper.h>
int Sensorpin = 6; 
int Hoekverdraaiing=0;
int Draaifout = 0;
const int stepsPerRevolution = 200;  // stappen van 1.8 graden
// initialize the stepper library on pins 8 through 11:
Stepper myStepper(stepsPerRevolution, 8, 9, 10, 11);
int BeginSignaal = pulseIn(Sensorpin,HIGH);


void setup() {
  myStepper.setSpeed(80); // can go higher maybe idk
  pinMode(Sensorpin,INPUT);
}

void loop() {
  int SensorSignaal = pulseIn(Sensorpin,HIGH);
  if (SensorSignaal != BeginSignaal) {
    if (abs(SensorSignaal-BeginSignaal) >=85) {
      Draaifout+=1;
    }
    else if ((SensorSignaal-BeginSignaal)*360/(1025*1.8) !=0){
      myStepper.step((SensorSignaal-BeginSignaal)*360/(1025*1.8));
      BeginSignaal = SensorSignaal;
    }
  }
  }

If you are asking whether BeginSignaal will get re-initialized after every loop() call because of the following code then the answer is no. Global variables are only initialized one time.

int BeginSignaal = pulseIn(Sensorpin,HIGH);

ToddL1962:
If you are asking whether BeginSignaal will get re-initialized after every loop() call because of the following code then the answer is no. Global variables are only initialized one time.

Yes, that's what I meant!
Thanks