If no files match and it returns 0 then you can check if there is something in element[0] like this.

 Code:
Break on

;Fill the $files variable here using the DirList or another UDF.

If UBound($files) = 0
	;The line below can be left out.
	;I always use it to be 100% sure the there are no leading or tailing spaces.
	$files[0] = Trim $files[0]
	If Len($files[0]) = 0
		? "no files found"
	Else
		? "1 file found"
	EndIf
Else
	? "More then 1 files found"
EndIf
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.