Skip to main content

Label

Returns the value of a selected label.

Label block

Description

The Label block returns the value of a selected label. This is a code block from the Interface drawer.

Usage

Label refers to the value of a selected label.

Syntax

Inputs:

  • A label from the dropdown menu
Label block syntax

Example

This is a model of the change in entropy of Argon (Ar) molecules between two configurable situations with respect to volume and temperature. The sliders on the left describe the initial and final conditions. The 'clock' label fetches the time and stops the model once 50 ticks have elapsed.

Label example code