Call (returns)
The value that is returned when this specified procedure is called.
Usage
Calls a procedure that returns a value.
Syntax
Inputs in this block:
- a created procedure that returns a numerical value from the dropdown menu
Example
In this model, a created procedure calculates the distance of the “Turtle” agent from the center of spaceland using the pythagorean theorem. Whenever the calculate distance button is pushed, the procedure ‘Calculate Distance’ is called and the distance from the center is displayed in a data box. Note that this shape of the call block is used to retrieve the returned information from the procedure.