Warning
#4

Example of why we should use the exact 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
	}
}
your warring is the fact that the elements do not have equal indentation
Reply


Messages In This Thread
Warning - by Counterafk - 04.10.2015, 00:12
Re: Warning - by Jefff - 04.10.2015, 00:33
Re: Warning - by Sew_Sumi - 04.10.2015, 01:49
Re: Warning - by AbyssMorgan - 04.10.2015, 06:13

Forum Jump:


Users browsing this thread: 1 Guest(s)