So I have a variable named c[insert integer here]_bool. The list of variables are:
c1_bool = false,
c2_bool = false,
c3_bool = false,
c4_bool = false,
c5_bool = false,
c6_bool = false,
c7_bool = false,
c8_bool = false,
I want to loop through these variables, and add another variable, like:
var iC = 1;
while( iC < 9 ){
if( c[here comes iC]_bool ){
//insert code
} else {}
iC ++;
}
How do I do that?