reference:evaluator:isselected

IsSelected(
     string:pattern,
     [string:pattern...]
)
bool or int

Arguments

pattern

Filename wildcard pattern. Prefix with dirs: to only match directories or files: to only match files.

pattern...

Optional. Additional filename patterns...

Return value

Result of the test for selected items.

Description

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