Set Data Box To

From StarLogo Nova Wiki
Other languages:


Set data box to

Assigns a value to a selected data box.

set [▼] data box to [_] is a code block from the Interface drawer.

Usage

set [▼] data box to [_] assigns a value to a selected data box.

Syntax

The Set Data Box To Block

Input:

  1. a data box from the dropdown menu
  2. a number in the socket

Example

Set Data Box To example code

This is a model of an epidemic. To monitor the spread of the epidemic, data boxes and a line graph have been employed to monitor immune, uninfected, and infected populations.

Nuances

Related Blocks