Skip to content

is_open

Syntax

is_open(group_type)

Parameters

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

Returns

Determine whether the agent is both a member of a group and that the group being checked is currently open.

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

Description

This action returns true if the agent is a member of a group of the given group type and the group is currently open. That is, the current hour is among the business hours for the group type and the group has not been closed by a group agent.

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 open.

if (is_open(Agent_Network)) then ...

See Also