Skip to content

get_container

Syntax

get_container(place_type, place_id)

Parameters

place_type
The place type that supposedly contains place_id
place_id
The place ID that is supposedly contained in place_type

Returns

The container/place type ID of the specified place_id. Returns -1 if no such place exists.

Description

A container is simply a place that contains a place. This action returns the ID of a place_type that contains the provided place_id.

Examples

container_id = get_container(School_District, School)

This returns the specific School_District that contains the agent's School.

See Also