Rev apparently evaluates any non-number as an infinitely high number? Anyway, your (Bill's) 'if' script is definitely evaluating a non-number. You can prove this by changing "if word 3 of line x of varAllGroups > 100 then" to "if word 3 of line x of varAllGroups is not a number then" good luck mark mitchell japan