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

List/Set.any(element, expression)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 List   [operators of similar scope]

 Query Boolean   [other Query Boolean operators]

 8.1.0

 


List/Set.any(element, expression)

New to v8.1.0, this is true if any element in the list matches the expression.

$MyList.any(x,x>5) 

is true if any element in $MyList is greater than 5.

If the target list or set is empty, .any() always returns false, and .every() always returns true.



A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : List/Set.any(element, expression)