Re: IF statements



On May 31, 12:14 pm, smurray444 <smurray...@xxxxxxxxx> wrote:
Thanks for your replies. As a novice I'd be most comfortable using the
EXIST statement - but how would I go about doing this? Would I first
need to use INQUIRE?

Many thanks for any help offered.
smurray444

I think as a novice it would be easiest to follow meek's advice. When
you first set up the array, fill it with a value you know to be
nonsensical. For instance, put -1 if you know that all the genuine
values must be nonnegative. Then you can test existence by

IF (array(i) .ge. 0) then
....

.