Dual Bipolar and Unipolar stepper problem

I had worked on 2 individual stepper drive codes, 1 Bipolar and 1 Unipolar.

The Bipolar uses the A4988 driver board and the Unipolar uses a ULN2003.

I am now trying to do a dual stepper board for a Bipolar motor and a Unipolar motor as a pan and tilt unit.

However, now I have married the 2 codes together, my Bipolar motor runs all the time, I am new and in the dark and would appreciate if someone could throw light on problem.

I am using the Arduino Nano board, thanks

//declare variables for the motor pins
int motorPin1 = 7;    // Blue   - 28BYJ48 pin 1
int motorPin2 = 8;    // Pink   - 28BYJ48 pin 2
int motorPin3 = 9;    // Yellow - 28BYJ48 pin 3
int motorPin4 = 10;   // Orange - 28BYJ48 pin 4

int motorSpeed = 7000; 
int lookup[8] = {B01000, B01100, B00100, B00110, B00010, B00011, B00001, B01001};

// defines pins numbers
const int stepPin = 3;
const int dirPin = 4;
#define button1 5 // Pan
#define button2 6 // Pan
#define button3 11 // Tilt
#define button4 12 // Tilt

void setup() {
  //declare outputs
  pinMode(motorPin1, OUTPUT);
  pinMode(motorPin2, OUTPUT);
  pinMode(motorPin3, OUTPUT);
  pinMode(motorPin4, OUTPUT);
  pinMode(stepPin, OUTPUT);
  pinMode(dirPin, OUTPUT);
  Serial.begin(9600);

  // define our button pins as input pullup type - see
  pinMode(button1, INPUT_PULLUP);
  pinMode(button2, INPUT_PULLUP);
  pinMode(button3, INPUT_PULLUP);
  pinMode(button4, INPUT_PULLUP);
}

void loop() {

  if (digitalRead(button1) == LOW && digitalRead(button2) == HIGH) {
    anticlockwise();
  }

    else if (digitalRead(button1) == HIGH && digitalRead(button2) == LOW) {
      clockwise();
    }

    else if (digitalRead(button3) == HIGH || digitalRead(button4) == LOW) {
      digitalWrite(dirPin, HIGH); // Enables the motor to move in a particular direction
      digitalWrite(stepPin, HIGH);
      delayMicroseconds(2500);
      digitalWrite(stepPin, LOW);
      delayMicroseconds(2500);

    }

    else if (digitalRead(button3) == LOW && digitalRead(button4) == HIGH) {
      digitalWrite(dirPin, LOW); // Enables the motor to move in a particular direction
      digitalWrite(stepPin, HIGH);
      delayMicroseconds(2500);
      digitalWrite(stepPin, LOW);
      delayMicroseconds(2500);
    }

  // Turn off stepper coils
  digitalWrite(7, LOW);
  digitalWrite(8, LOW);
  digitalWrite(9, LOW);
  digitalWrite(10, LOW);
}

void clockwise()
{
  for (int i = 0; i < 8; i++)
  {
    setOutput(i);
    delayMicroseconds(motorSpeed);
  }
}

void anticlockwise()
{
  for (int i = 7; i >= 0; i--)
  {
    setOutput(i);
    delayMicroseconds(motorSpeed);
  }
}

void setOutput(int out)
{
  digitalWrite(motorPin1, bitRead(lookup[out], 0));
  digitalWrite(motorPin2, bitRead(lookup[out], 1));
  digitalWrite(motorPin3, bitRead(lookup[out], 2));
  digitalWrite(motorPin4, bitRead(lookup[out], 3));
}

Just read my code again on Forum page, found my problem is missing && instead of ||

So all works, I'm gone .....