problem make coding LV-MaxSonar EZ1 to control stepper motor urgent 3week stuck

problem make coding LV-MaxSonar EZ1 for control stepper motor......i already have calculate lv-maxsonar range...i want control stepper if lv maxsonar detect range ( inches >35 && cm > 88) Step backward steps, if lv maxsonar detect range( inches <35 && cm <88) Step forward

LV_maxsonar_to_control_steppercnew.ino (1.9 KB)

So, what's happening?
(It's easier if you post your code in code tags, rather than attaching it)

#define motorSteps 300
#include <Stepper.h>
#define motorPin1 8
#define motorPin2 10
#define ledPin 13
Stepper myStepper(motorSteps, motorPin1,motorPin2);
int pulse, inches=35, cm=88;
const int pwPin = 7;
unsigned int pulse, inches, cm;

void setup() {
// set the motor speed at 300 RPMS:
myStepper.setSpeed(300);

Serial.begin(9600);

// set up the LED pin:
pinMode(ledPin, OUTPUT);
// blink the LED:

}
void loop() {
pinMode(pwPin, INPUT);
//Used to read in the pulse that is being sent by the MaxSonar device.
//Pulse Width representation with a scale factor of 147 uS per Inch.

pulse = pulseIn(pwPin, HIGH);
//147uS per inch
inches = pulse/147;
//change inches to centimetres
cm = inches * 2.54;
Serial.print(inches);
Serial.print("in, ");
Serial.print(cm);
Serial.print("cm");
Serial.println();
delay(500);
pinMode(pwPin, OUTPUT);
digitalWrite(pwPin, LOW); // Ensure pin is low
delayMicroseconds(2);
digitalWrite(pwPin, HIGH); // Start ranging
delayMicroseconds(5); //with 5 microsecond burst
digitalWrite(pwPin, LOW);

stepper.update();
int digitalValue = digitalRead(pwpin);
stepper.step(Value - previous);
// remember the previous value of the sensor
previous = Value;
}

if ( inches >35 && cm > 88);
{
// Step backward steps:
Serial.println("Backward");
myStepper.step();
digitalWrite(ledPin,LOW);
delay(50);
}
Serial.println(digitalValue);
delay (1000);
}
else if( previous = digitalValue);
{
digitalWrite(ledPin, HIGH);

if( inches <35 && cm <88)
{
// Step forward 34000 steps:
Serial.println("Forward");
myStepper.step();

delay(50);
}

if ( inches >35 && cm > 88);

?

What happened to the code tags?

motor start reverse

"motor start reverse" happened to the code tags?

What about the semicolon I pointed out?

sorry for code tag mean....if sensor detect range inches >35 && cm > 88.......after sensor detect what motor start move

if ( inches >35 && cm > 88);

Says ignore this pair of comparisons, and perform the next set of instructions anyway.
Lose the semicolon.

unsigned int pulse, inches, cm;

ok still have problem here

No, I can't see anything wrong with that in isolation, as it is. (hint)

ic. so how i stupid in coding....i need help to make coding to run project ...i want use MaxSonar EZ1 to control my stepper motor forward to my target and reverse after delay 4000.

So, post your code.
Tell what it does that you don't expect, and tell us what it doesn't do that you do expect.

i try make coding by using maxsonar ez1 to control stepper motor to forward n reverse...i don't no what wrong wit my coding

#define motorSteps 300 
  #include <Stepper.h>
  #define motorPin1 8
  #define motorPin2 10
  #define ledPin 13
  Stepper myStepper(motorSteps, motorPin1,motorPin2);
  int pulse, inches=35, cm=88;
  const int pwPin = 7; 
 

  void setup() {
  // set the motor speed at 300 RPMS:
  myStepper.setSpeed(300);
    
  Serial.begin(9600);
  
  // set up the LED pin:
  pinMode(ledPin, OUTPUT);
  // blink the LED:
  
}
void loop() {
  pinMode(pwPin, INPUT);
    //Used to read in the pulse that is being sent by the MaxSonar device.
  //Pulse Width representation with a scale factor of 147 uS per Inch.

  pulse = pulseIn(pwPin, HIGH);
  //147uS per inch
  inches = pulse/147;
  //change inches to centimetres
  cm = inches * 2.54;
  Serial.print(inches);
  Serial.print("in, ");
  Serial.print(cm);
  Serial.print("cm");
  Serial.println();
  delay(500);
  pinMode(pwPin, OUTPUT);
  digitalWrite(pwPin, LOW);        // Ensure pin is low
  delayMicroseconds(2);
  digitalWrite(pwPin, HIGH);       // Start ranging
  delayMicroseconds(5);              //with 5 microsecond burst
  digitalWrite(pwPin, LOW);
  
  // remember the previous value of the sensor
      if (pwPin > 35 && pwPin > 88)
     {
      // Step backward steps:
      Serial.println("Backward");
      myStepper.step();
      delay(50);
     }
     Serial.println(digitalValue);
     delay (1000);
     }
      else if( previous = digitalValue);
       {
         digitalWrite(ledPin, HIGH);
    
     if( inches <35 && cm <88)
     {
       // Step forward 34000 steps:
       Serial.println("Forward");
       myStepper.step();
       
       delay(50);
     }

You need to have the code compile before you can say whether it works or not.
To get it to compile, you need to define"digitalValue" somewhere.
When you've done that, you need to sort out the two basic errors here if( previous = digitalValue);
match the "if"s with the "else"s, sort out what this if (pwPin > 35 && pwPin > 88) really needs to do.