Label: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
(duplicate file already uploaded)
 
(3 intermediate revisions by the same user not shown)
Line 16: Line 16:
<!--T:3-->
<!--T:3-->
==Syntax==
==Syntax==
<section begin=image/>[[File:Label Nums.png|right|alt=The Label Sums Block|thumb]]<section end=image/>
[[File:Label Nums.png|right|alt=The Label Sums Block|thumb]]
<!-- <code>[Dropdown: Label Widget] label</code> -->  
<!-- <code>[Dropdown: Label Widget] label</code> -->  


Line 22: Line 22:
Inputs:
Inputs:
#a label from the dropdown screen
#a label from the dropdown screen
==Nuances==
 
==Example== <!--T:8-->
 
<!--T:9-->
[[File:set_label_to_example.gif|alt=Label example gif|thumb]]
[[File:label_example.png|alt=Label 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 ‘[[Special:MyLanguage/Clock|clock]]’ label fetches the time and stops the model once 50 ticks have elapsed.
 
==Nuances== <!--T:11-->


<!--T:5-->
<!--T:5-->

Latest revision as of 15:50, 16 August 2023

Other languages:


label

Returns the value of a selected label.

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

Usage

[▼] label refers to the value of a selected label.

Syntax

The Label Sums Block

Inputs:

  1. a label from the dropdown screen

Example

Label example gif
Label 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 ‘clock’ label fetches the time and stops the model once 50 ticks have elapsed.

Nuances

Related Blocks