1234567
for (int i = 0; i < 30; i++) { if(i % 2 == 0) { objectname.function(i); } else { objectname.function(i); } }//end for