This version is out of date, covering development from v8.0.0 to v8.x.x. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v8 Icon

any(group,value)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Group   [operators of similar scope]

 Non-query Boolean   [other Non-query Boolean operators]

 Baseline

 


any(group, value)

A Boolean operator examines a group of notes and determines whether any note in the group meets a criterion.

group describes the notes to be examined and may be any group designator including a find() query.

value may be any valid expression, but will usually be a reference to an attribute; short form Boolean attribute expressions are acceptable.

value must not be enclosed in quotes.

For example:

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

any(children,$Overdue==true) 

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

any(children,$Overdue==false) 

any(children,!$Overdue) (using short from 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