Navigation Bar AgentSheets Education R&D Support About Us Manuals Tutorial Movies FAQ Books Classes

See A Condition

Definition: The See A condition checks if the agent at the cell indicated by the Direction parameter is of the Class specified in the Class parameter. This command picks out all the depictions of a given agent class. Use it to identify an agent regardless of the way it looks.

If the indicated cell contains an agent of that class, the condition is true. Otherwise, the condition is false.

Parameters: direction, class
Example: The Counter agent in the Benchmark project checks to see if there is a Digit agent to its left and sends the message to "inc" (increment).

reference manual | ©2010 AgentSheets, Inc. | contact us