Ok Matt, since you've been making short work of these simple ones we've been giving you, how about a complicated one?
FieldQuery: Return a list of matches based on a list of fields to search, from a selected scope of files.Syntax:
FieldQuery(fieldlist,valuelist,return,mode,scope)
Fieldlist: list of fields to search, e.g. Director;Studio
Valuelist: a value to search for each field in fieldlist (could be an expression)
Return: The single field that is returned when a match is found, values from files returned as a ; delimited list
Mode: 0=contains
1=exact match
Scope: Audio=1/Video=2/TV=4/Image=8 OR'd together (searches globally)
Examples:
FieldQuery(Director,Ridley Scott,Name,1,2) returns
Alien;Blade Runner;Gladiator
FieldQuery(Actors,Al Pacino,Name,0,2) returns
The Godfather;Heat;Scarface
FieldQuery(Actors;Director,Al Pacino;Michael Mann,Name,0,2) returns
Heat
If you think we should, we could add a final option, context 0=global, 1=current file scope in view)