in reply to Re: If condition logic yielding partially correct outputin thread If condition logic yielding partially correct output