in reply to checking an array of numbers for a particular value

Homework or not, it is in your best interests to learn and use Super Search.

Nodes such as:

might give you the insight to solve your problem.

HTH,

planetscape
  • Comment on Re: checking an array of numbers for a particular value