Hey all,
Firstly, my apologies if this question has been asked before, but my cursory forum search did not turn up what I am looking for.
I am trying to do one loop with multiple conditions, something like:
for(i = 0; i < array.size(); i ++){
if(param=1) Create Object 1;
else if(param=2) Create Object 2;
else if(param=3) Create Object 3;
else if(param=4) Create Object 4;
else if(param=5) Create Object 5;
else if(param=6) Create Object 6;
else if(param=7) Create Object 7;
... so on.
}[/code:dpgskplu]
I tried doing a series of For loops, but that hangs my program since I have a large number of objects to loop through.
Ideas?