Skip to content

is_temporarily_closed

Syntax

is_temporarily_closed(group_type)

Parameters

group_type
A valid group type, either a place or a network, that should be checked.

Returns

Returns 1 (true) if the current agent is a member of a group of the given type and is currently closed. Otherwise, this returns 0 (false).

Description

Determine whether the agent is a member of a group and the group is currently closed.

This action returns true if the agent is a member of a group of the given group type and the group is currently closed.

Examples

If there is a network, Agent_Network, then the following conditional applies to agents who are members of the network when the group is closed.

if (is_temporarily_closed(Agent_Network)) then ...

See Also