Sure, it is only to check that at least one match was found. If there was no matches, %x would be empty and !%x (!%x = NOT%x) would be $true, so you would want the "no matches" line echoed. laugh.