Checks if an element map with the given identifier exists and if yes returns the total number of keys and elements contained in it.
Parameters:
elementMapId
keyCount
If the element map does not exist, the variable will be assigned with 0.
This parameter may be useful when debugging templates.
See example below on how to use it.
(You may also pass null
instead of a variable reference
to not receive any value.)
elementCount
Note: The elements are distinguished by their unique identifiers
(see GOMElement.id
).
If the element map does not exist, the variable will be assigned with 0.
This parameter may be useful when debugging templates.
See example below on how to use it.
(You may also pass null
instead of a variable reference
to not receive any value.)
associationCount
If the element map does not exist, the variable will be assigned with 0.
This parameter may be useful when debugging templates.
See example below on how to use it.
(You may also pass null
instead of a variable reference
to not receive any value.)
true
, if the element map with the specified identifier exists;
false
, if there is no element map with the specified identifier.
mapId = "My Element Map";
chk = checkElementMap (mapId,
@keyCount,
@elementCount,
@associationCount);
echo (mapId + " exists: " + (chk ? "yes" : "no"));
echo ("Keys: " + keyCount);
echo ("Elements: " + elementCount);
echo ("Associations: " + associationCount);
countMappedElements(), createElementMap(),
putElementByKey(), putElementsByKeys(), echo()