RESOLVED Working with relays

After looking at my sketch can anyone show me how to continue the sketch to only run the last 5 lines of code ( line 37 thru 43 and run forever.)

int in1 = 6;
int in2 = 5;

void setup() {

// put your setup code here, to run once:
pinMode (in1, OUTPUT);
pinMode (in2, OUTPUT);

}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite (in1, HIGH);
digitalWrite (in2, HIGH);
delay (1000);

digitalWrite (in1, LOW);
digitalWrite (in2, LOW);
delay (1000);

digitalWrite (in1, HIGH);
digitalWrite (in2, HIGH);
delay (750);

digitalWrite (in1, LOW);
digitalWrite (in2, LOW);
delay (750);

digitalWrite (in1, HIGH);
digitalWrite (in2, HIGH);
delay (500);

digitalWrite (in1, LOW);
digitalWrite (in2, LOW);
delay (500);

digitalWrite (in1, HIGH);
digitalWrite (in2, HIGH);
delay (250);

digitalWrite (in1, LOW);
digitalWrite (in2, LOW);
}

can anyone show me how to continue the sketch to only run the last 5 lines of code ( line 37 thru 43 and run forever.)

while (true)
{
  //whatever code you want to run forever goes here
}

Thank you very much "UKHeliBob" your solution has worked out perfectly.

The effect of the suggested while() is to block loop() so lines 13-35 run once only, which is presumably what you want anyway, and lines 37-42 loop in a while() in the blocked loop().

An alternative and perhaps "neater" solution would be to put everything that's currently in loop() from lines 13-35 in setup() to run once, and leave 37-42 where they are with no added while().