FilterByObjectType

This function evaluates to a list of objects containing objects from the original list which match the specified types.

Description

Filter a list of objects to include only object(s) of the specified type(s).

Type

LIST {OBJECT}

Arguments

Type

Meaning

1

LIST

list of objects

2

LIST

list of object types to include, where each object type is expressed as a STRING.

Evaluation

The list of object types to include is parsed and mapped to RiverWare object types. Then, the list of objects is evaluated in order, and each object which is one of the requested object types is added to the solution list.T he spellings and capitalization of objects can be found in the Subbasin Manager under the Automatic tab.

Mathematical Expression

 

Comments

The order of objects is preserved from the argument object list to the solution object list. The list arguments may contain any number of items. If either of the arguments is an empty list, the function evaluates to an empty list.

 
FilterByObjectType({%"Lake Mead",%"Lake Powell",%"Virgin River"},
{"LevelPowerReservoir"})
 
{%"Lake Mead",%"Lake Powell"}