$_sql = "name like '%hill%'" Mfilter where=$_sql |
# set filter on all found caches MFILTER Where=Found # set a filter on all caches found in the last 7 days MFILTER Where=LastFoundDate > date('now','localtime','-7 days') # set a filter on all caches that contain "hill" (ignore case) MFILTER Where=g_regex('hill',name) # set a filter on all caches that start with "The" (ignore case) MFILTER Where=g_regex('^the',name) # set a filter on all caches that are not found, and not archived, and not temp disabled (ie available) MFILTER Where= not found and status='A' # Set a filter for all caches that have "Boat" or "Canoe" in the long or short description mfilter Where=g_regex('boat|canoe',LongDescription) or g_regex('boat|canoe',ShortDescription) #Set a filter for all caches that have at least one child parking waypoint mfilter where=Code in (Select distinct cParent from waypoints where cType = 'Parking Area') # Set a filter for all caches that do *not* have a "Publish Listing" log mfilter where=Code not in (Select distinct lParent from logs where lType = 'Publish Listing') # Set filter for all caches that have at least 2 dnf's in the last 30 days mfilter where=Code in (select lparent from logs where date(ldate) > date('now','localtime','-30 day') and lType = 'Didn''t find it' group by lparent having count(lparent) >= 2) |
MFILTER Where=UserFlag IF $_FilterCount > 0 ... do some action ELSE PAUSE Msg="No waypoints in filter, action cancelled" ENDIF |