agent_exists¶
Syntax¶
Parameters¶
agent-id- an expression that evaluates to the ID of an agent.
Returns¶
Returns a boolean value indicating the presence or absence of the agent.
Description¶
Checks whether an ordinary agent with a specified agent-id exists within the simulation environment.
Examples¶
print("Agent with ID: ", id(), " exists?: ", agent_exists(id()))
print("Agent with ID: ", 8675309, " exists?: ", agent_exists(8675309))