Stopping blinking light after 20 seconds and keeping it on

Basically my objective is to move four servos after 20 seconds and keeping the light on after said 20 seconds.


#include <Servo.h>
#define LED 13

 Servo myservo1;
 Servo myservo2;
 Servo myservo3;
 Servo myservo4;
 
int angle = 0;
int number = 20;


void setup(){

  pinMode(LED,OUTPUT);
  pinMode(2, OUTPUT);
  //mosfet, LED, & Servo//
  
  myservo1.attach(11);
  myservo2.attach(10);
  myservo3.attach(9);
  myservo4.attach(8);

  
  myservo1.write(0);
  delay(100);
  myservo2.write(0);
  delay(100);
  myservo3.write(0);
  delay(100);
  myservo4.write(0);
  delay(100);
  
  digitalWrite(2,LOW);//mosfet which isn't needed rn//
  delay(100);
}

void loop(){
  
  if(number >= 10)
  digitalWrite(LED,HIGH);
  delay(100);
   
  digitalWrite(LED,LOW);
  delay(100);
  
   number - 1;
    if(number = 0){
       myservo1.write(90);
       myservo2.write(90);
       myservo3.write(90);
       myservo4.write(90);
       delay(100);
      
      digitalWrite(2,HIGH);//mosfet which isn't needed rn//
      delay(100);
      
      digitalWrite(LED,HIGH);
      delay(100);
    }
}

number - 2;
OOPS


if(number = 10)
OOPS


if(number >= 10)
Did you need

{ }


BTW
In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the </> icon from the ‘reply menu’ to attach the copied sketch.

This was a mistake. "number - 2" is "number - 1" and I though I could subtract 1 from whatever the number is at the time. And for "if(number = 10)" its ment to be "if(number = 0)". I changed all of this. I thought that I could basically say that if the number equals 0 during count down, then actuate servo.

Please do not edit previous posts.


number - 1;
No, check your syntax


if(number = 0){
= is not the same as ==

Topic LOCKED as a duplicate of this one.

Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Continued cross posting could result in a time out from the forum.

Could you also take a few moments to Learn How To Use The Forum.

Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.