Collection extensions

where

collectionstandard futureprog, computer function, computer program

Syntax

@CollectionVariable.where(ItemVariableName, InnerFunction)
Returns
Collection (Same Type)
Available in
standard futureprog, computer function, computer program
The WHERE function runs the inner function (which must return a boolean) over all items in the collection, and returns a new collection that only contain whichever items were TRUE from the inner function. For example, if you had a CHARACTER COLLECTION, you could run .Where(x, @x.Age >= 21) to get all characters who are 21 years or older.