Set Label To: Difference between revisions

From StarLogo Nova Wiki
(updates from Blockument)
(Marked this version for translation)
 
Line 22: Line 22:
#a number into the socket.
#a number into the socket.


==Example==
==Example== <!--T:8-->


<!--T:9-->
[[File:set_label_to_example.gif|alt=Set Label To example gif|thumb]]
[[File:set_label_to_example.gif|alt=Set Label To example gif|thumb]]
[[File:set_label_to_example.png|alt=Set Label To example code|thumb]]
[[File:set_label_to_example.png|alt=Set Label To example code|thumb]]


<!--T:10-->
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 set ‘situationLabel’ label to block displays the values of the temperature and volume of the system for both situations.
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 set ‘situationLabel’ label to block displays the values of the temperature and volume of the system for both situations.



Latest revision as of 14:20, 14 August 2023

Other languages:


Set label to

Assigns a value to a selected label. Unlike data boxes, labels do not have a heading and may be assigned text values.

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

Usage

set [▼] label to [_] assigns a value to a selected label. Unlike data boxes, labels do not have a heading and may be assigned text values.

Syntax

The Set Label to Block

Input:

  1. a label from the dropdown menu
  2. a number into the socket.

Example

Set Label To example gif
Set Label To example code

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 set ‘situationLabel’ label to block displays the values of the temperature and volume of the system for both situations.

Nuances

Related Blocks