IsSelected(
string:pattern,
[string:pattern...]
)
→ bool or int
With a single pattern specified, returns True if items matching that pattern are currently selected, otherwise returns False.
With multiple patterns specified, returns 0 is no patterns match selected items, otherwise returns the index of the first match.
Example:
if (IsSelected("*.jpg")) { ... } // one or more jpgs are selected
See also: FileCount