You shouldn't call $findfile 3 times for the same thing. You should store the results in a variable once and use that for the comparisons.

var %results = $findfile(blah,blah,blah)
if (%results > 10) { ;blah }
elseif (%results < 10) { ;blah }
elseif (%results == 0) { ;blah }

-genius_at_work