Skip to main content

Set Data Box To

Assigns a value to a selected data box.

Set Data Box To block

Description

The Set Data Box To block assigns a value to a selected data box. This is a code block from the Interface drawer.

Usage

Set Data Box To assigns a value to a selected data box.

Syntax

Inputs:

  • A data box from the dropdown menu
  • A number in the socket
Set Data Box To block syntax

Example

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.

Set Data Box To example code