is_member()

predicate that checks if the evaluating agent is a member of a group

Synopsis

is_member(group)

Description

Checks if the evaluating agent is a member of a 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.

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)) then ...

See Also

skip(), is_skipping(), is_group_agent(), is_at(), is_meta_agent(), is_open(), join(), attend(), quit()