how to write loops with mayo armband

good morning
we use myo armband with esp 32 Bluetooth and wifi model

we have 5 moves in the myo so we want to use it all

how can we write a loop that we will use every move twice

example:
like a wave out for on the LED
and the double wave out for off LED

Please post your current code and more details of the hardware that you are using

#include <MyoController.h>

#define FIST_PIN 4 //defining differnet IO pins
#define WAVEIN_PIN 23
#define WAVEOUT_PIN 2
#define FINGERSSPREAD_PIN 7
#define DOUBLETAP_PIN 8

MyoController myo = MyoController(); //calling MyoController function

void setup() {
Serial.begin(9600);
pinMode(FIST_PIN, OUTPUT); //setting pin mode
pinMode(WAVEIN_PIN, OUTPUT);
pinMode(WAVEOUT_PIN, OUTPUT);
pinMode(FINGERSSPREAD_PIN, OUTPUT);
pinMode(DOUBLETAP_PIN, OUTPUT);

myo.initMyo(); //Initializing Myo
}

void loop()
{
//Serial.println("HI");
myo.updatePose();
switch ( myo.getCurrentPose() ) { //using switch case for the interface
case rest:
digitalWrite(FIST_PIN,LOW);
digitalWrite(WAVEIN_PIN,LOW);
digitalWrite(WAVEOUT_PIN,LOW);
digitalWrite(FINGERSSPREAD_PIN,LOW);
digitalWrite(DOUBLETAP_PIN,LOW);
break;
case fist:
digitalWrite(FIST_PIN,HIGH);
break;
case waveIn:
digitalWrite(WAVEIN_PIN,HIGH);
break;
case waveOut:
digitalWrite(WAVEOUT_PIN,HIGH);
Serial.print("ok");
delay(500);
break;
case fingersSpread:
digitalWrite(FINGERSSPREAD_PIN,HIGH);
break;
case doubleTap:
digitalWrite(DOUBLETAP_PIN,HIGH);
break;
}
delay(100);
}

this is the code that I am working in it
and the hardware is only to on and off the LEDs by using all the moves