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

Empty Condition

Definition: The Empty condition checks if the neighboring cell specified by the Direction parameter is empty. A cell is empty if it does not contain any agents found in the current Gallery.

If the cell indicated by the Direction parameter is empty, the condition is true. Otherwise, the condition is false.

Parameters: direction
Example: In its search for wood, the Termite agent in the Termites project checks if the area to the right or left is empty and has a certain chance (percentage) of moving to that empty position.

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