2 loops in one script???

is it possable to have 2 loops in a script??? :-?

What do you mean?

Like this?:

void loop(){
  while(someContidion){
    executeSomeCode;
  }
  while(someOtherContidion){
    executeSomeOtherCode;
  }
}

Not to be picky but Arduino programs should be referred to as ‘sketch’ or ‘program’ :slight_smile:

erm… but idk the reasons.

O__o

Read this: How to Ask Questions the Smart Way

Can you tell us more about what you’re trying to accomplish?

probably pwnz0r means about 2 threads, that is not possible, however you can emulate this behavior

yup.

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1233759890/7#7

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1237842298/0#0

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1227484674/0#0