so i have this 5 lanterns and i want to lit up 3 of them but like in order, like 5-4-2, but when i try to write in code it lit up at the same time
for(int i=0; i<=1000; i++){
if(i==250)lightlantern1;
if(i==500)lightlantern2;
}