Skip to content

quit

Syntax

quit(<group_name>)

Parameters

<group_name> :
Name of the group or place the agent is quitting.

Description

If the agent belongs to a group of the given type, the agent will leave that group; otherwise, the action has no effect.

Examples

If an agent is a member of a School, then the agent will quit the school with:

quit(School)

See Also