continue from loop to loop

Hi, I try to run this simple on/off project. First step run for let's say 70 times and then jump to the next step and run it maybe 130 times and continue this for 20 steps (each step has a different delay inside). When it gets to the last step it should terminate after completing. Delay between steps is not important.

Would anyone help me out with the necessary coding to complete this project, I have tried for a rather long time without success. Many thanks.

(1st. step)

digitalWrite(2, HIGH);
delay(100);
digitalWrite(2, LOW);
delay(100);

run the above 70 times, then continue below:

(2nd. step)

digitalWrite(2, HIGH);
delay(50);
digitalWrite(2, LOW);
delay(50);

run the above 130 times, then continue (18 more steps).

pilot57:
... I have tried for a rather long time without success. Many thanks.

Post to the forum a MCVE in code tags and we can start from there.

While you’re addressing this in a linear fashion, you might read up on for() loops.
Once you have this all sorted and running, make it smaller and more readable with arrays, millis(), and possibly structs