Hey all!
I would just like to know if the following is possible. I think it is im just not sure how to code it.
Instead of saying:
(IF array[0] == 1 || array[1] == 1 || array[2] == 1)
Can i reduce this to specify that i want to check through my array? So for example:
(IF array[0-2] == 1)
Assuming this is possible i then need to count all the occasions when one of my array values is equal to 1.
Thanks in advance
GavW
I would just like to know if the following is possible. I think it is im just not sure how to code it.
Instead of saying:
(IF array[0] == 1 || array[1] == 1 || array[2] == 1)
Can i reduce this to specify that i want to check through my array? So for example:
(IF array[0-2] == 1)
Assuming this is possible i then need to count all the occasions when one of my array values is equal to 1.
Thanks in advance
GavW