Tinderbox v10 Icon

any(scope, condition)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Last Altered: 

Operator Uses Regular Expressions: 

Operator Uses Scoped Arguments: 

Operator Has Conditional Arguments: 


any(scope, condition)

This Boolean operator examines notes at scope (defining scope) and determines whether any note(s) in the defined group evaluates condition as true.

scope may be any group designator, or group defined by find().

The overall condition must not be enclosed in quotes, though a literal string value within the query will need to be quoted. For example:

any(children,$Status=="Important") 

any(children,$Overdue==true) 

any(children,$Overdue) (using short form test)

any(children,$Overdue==false) 

any(children,!$Overdue) (using short form test)

If trying to resolve contains() for multiple matches, use any(children,$Name=="string"). Thus of it is desired for an agent to list the parent containers of all notes titled 'foo', the agent query would be:

any(children,$Name=="foo") 

If agents are present, it may be sensible to filter for aliases:

any(children,$Name=="foo") & !$IsAlias 

See also: every().