is_open()
Determine whether the agent is both a member of a group and that the group being checked is currently open.
Synopsis
is_open(group_type)
Description
This function 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.
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 open.
Otherwise, this returns \(0\) (false
).
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
skip(), is_skipping(), is_at(), is_temporarily_closed(), is_group_agent(), join(), quit()