Checks if the element map with the specified identifier contains elements associated with the given key.
Effectively, this function does the same as the following expression:
countElementsByKey (
elementMapId, key, filterQuery
) > 0
Parameters:
elementMapId
Note: When the element map with such an identifier does not exist, the generator raises an error.
key
filterQuery
When specified, this should be a boolean subquery
created with BooleanQuery()
function.
The subquery will be processed against each initially selected element
and should return true
if the element must be counted
and false
otherwise.
The tested element is passed as the generator context element.
true
, if the element map contains one or many elements that
are associated with the specified key and satisfy the filter condition (when specified);
false
otherwise.
checkElementByKey(), checkElementMap(), findElementsByKey(), countElementsByKey()