if statements with arrays
#1

I have this variable with arrays of 17 cells, i want to put it as statement:
Instead of if(TollGate[0] || TollGate[1] || TollGate[2] || TollGate[3] etc till 16....)
How to make it shorter, in one word / array and to check all the arrays in one time...

new TollGate[16];

Thanks.
Reply


Messages In This Thread
if statements with arrays - by Lidor124 - 11.03.2014, 12:00
Re: if statements with arrays - by Vince - 11.03.2014, 12:06
Re: if statements with arrays - by Richie© - 11.03.2014, 12:06

Forum Jump:


Users browsing this thread: 3 Guest(s)