Skip to main content

contents

Discworld expression help

contents

Name

contents - return the contents of the container

Syntax

array object contents(object ob)

Description

This method will return the array objects that are inside the specified object. This only takes a single object as an input, it does not take an array of objects.

Examples

if sizeof(objects) = 1 and sizeof(objectmatch(contents(objects[0]), 'red towel') = 12 then $20$ else $0$ endif

See also

sizeof, objects