just to add, if you can only use while loops (this looks like a school project) you can use whiles to simulate if's:
Code:CONDITION1 = /*some setting condition routine*/; IfSim = false while (CONDITION1 == true && IfSim == false) { stuff IfSim = true; } while (CONDITION1 == false && IfSim == false) { stuff IfSim = true; }




Reply With Quote