Skip to content

is_member

Syntax

is_member(group)

Parameters

group
The mixing group being checked. This can be a place or a network.

Returns

True if the agent is a member of group. False otherwise.

Description

Checks if the evaluating agent is a member of a group.

Examples

If there is a network, Agent_Network, then the following conditional applies only to agents who are members of the group:

if (is_member(Agent_Network)) {
    ...
}

See Also