FileCount(
bool:selected,
string:pattern,
[string:pattern...]
)
→ int
Returns the total count of items matching pattern. Specify true for the selected argument for a count of selected items only.
With multiple patterns specified, the return value is the sum of all items matching the supplied patterns.
Example:
if (FileCount("*.jpg") > 2) { ... } // at least three jpgs in folder if (FileCount(true, "dirs:new*") == 5) { ... } // 5 folders starting with new are selected
See also: IsSelected