objectmatch |
Discworld expression help |
objectmatch |
Name
objectmatch - the objects matching
Syntax
array object objectmatch(array object obs, string match)
Description
This method finds the objects that match the specified match name. This can be used to check the number of each type of thing. The string used in the match here is like the matching used in the parser itself.
Examples
if sizeof(objectmatch(objects,'red towel')) = 2 then $20$ endif