nChecksToMake = 23 &&& or some other value lcReturn = .t. FOR ix = 1 TO nChecksToMake lcIx = alltrim(str(ix)) IF condition&lcIx = result&lcIx lcReturn = .f. EXIT FOR ENDIF ENDFOR