I need to help Operator For Loop

 

Hi, I have to a code with Operator For 

for(i=0;i<5000;i++)

{

Print("Example"); 

//....1 

Print("Example 2"); 

//....2

so i don't want to wait until  i<5000 but i need //....1  and //....2 how can i run both of at same time ? Does know anybody that problems' solution ?

I think its shouldn't impossible...

Thanks for your care

Best Regards... 

 

Hi, I am not sure about your question, but maybe this is the solution for you

      for(i=0;i<5000;i++)
      {
         if ( i == 1 ) Print("Example 1"); 
         if ( i == 2 ) 
            {
               Print("Example 2"); 
               break;
            }
      } 
 

Perhaps the following too :

 

Print("Example 2"); 
//....2

for(i=0;i<5000;i++)
{
   Print("Example"); 
   //....1 
} 

  

for(i=0;i<5000;i++)
{
   Print("Example"); 
   //....1 

   Print("Example 2"); 
   //....2

} 
Reason: