Is it possible to check for two separate variables in one loop? eg while(conditon_one and condition_two){ do this;}
yes sure while (cond_1 && cond_2){ statement...; }