04.10.2015, 06:13
Example of why we should use the exact indentation
your warring is the fact that the elements do not have equal indentation
Код:
function(a,b,c,d,e,f){ if(a > 0){ //'a' are greater than zero if(b > 0){ //'a, b' are greater than zero if(c > 0){ //'a, b, c' are greater than zero if(d > 0){ //'a, b, c, d' are greater than zero if(e > 0){ //'a, b, c, d, e' are greater than zero if(f > 0){ //all variables are greater than zero } else { //'f' is not greater than zero } } else { //'e' is not greater than zero } } else { //'d' is not greater than zero } } else { //'c' is not greater than zero } } else { //'b' is not greater than zero } } else { //'a' is not greater than zero } }