::hwat::utils::FilterElements

Given a list of element IDs and element types, filters and returns only the intersection of the lists.

Syntax

::hwat::utils::FilterElements n_elemList n_filterList

Arguments

n_elemList
List of elements to check against the filter.
n_filterList
List of element types to filter.

Returns

Success
List containing the element IDs of the intersection of the two lists. 0 if the intersection is empty (no given element matches any given filter)
Failure
{}

Example

::hwat::utils::FilterElements [::hwat::utils::GetMarkedEntity elements 2 "all"] [list 103 104]