Hi
Learning arrays. I have 5 produce that I have put in array.
What I would like to do is find out how many of these have a nil amount and promote to a VAR.
To be able to access these integers later, through the Array.
Regards
Hi
Learning arrays. I have 5 produce that I have put in array.
What I would like to do is find out how many of these have a nil amount and promote to a VAR.
To be able to access these integers later, through the Array.
Regards
This would print the index of ints equal to zero:
Should be able to use something like that for what you want
Then every int in your array was equal to 0, what behaviour were you expecting?
edit: Ah, sorry you wanted to know how many were equal to zero? Then just increment an int by 1 for each that is true, and set it:
Hi
Thanks, works fine.
Regards