Tinderbox v8 Icon

List/Set.every(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.every(element, expression)

New to v8.1.0, this is true if every element in the list meet

$MyList.every(x,x>5) 

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

The comparison may also be applied to lists of strings:

"apple; pear; plum".every(x, x>"aardvark") 

is true because every element follows "aardvark" in alphabetical order.

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.every(element, expression)