Label: Difference between revisions

From StarLogo Nova Wiki
(Created page with "<section begin="image"/> <section end="image" /> <section begin="name" />{{Block|[▼] label}}<section end="name" /> is a code block from the Interface drawer. ==Usage== <p id="tooltip">{{Block|[▼] label}} refers to the value of a selected label.</p> ===Syntax=== <code>[Dropdown: Label Widget] label</code> ==Nuances== ==Related Blocks== *{{Block|Set Label To|set [▼] label to [_]}} *{{Block|Data Box|[▼] data box}} Category:Interface Category:Code Blo...")
 
(duplicate file already uploaded)
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
<translate>
<!--T:1-->
<section begin="image"/>
<section begin="image"/>
[[File:Label.png|alt=label|thumb]]
<section end="image" /><p id="tooltip">Returns the value of a selected label.</p>


<section end="image" />
<!--T:7-->
<section begin="name" />{{Block|[▼] label}}<section end="name" /> is a code block from the [[Interface]] drawer.
<section begin="name" />{{Block|[▼] label}}<section end="name" /> is a code block from the [[Interface]] drawer.


<!--T:2-->
==Usage==
==Usage==
<p id="tooltip">{{Block|[▼] label}} refers to the value of a selected label.</p>
{{Block|[▼] label}} refers to the value of a selected label.
 
<!--T:3-->
==Syntax==
[[File:Label Nums.png|right|alt=The Label Sums Block|thumb]]
<!-- <code>[Dropdown: Label Widget] label</code> -->
 
<!--T:4-->
Inputs:
#a label from the dropdown screen
 
==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]]


===Syntax===
<!--T:10-->
<code>[Dropdown: Label Widget] label</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 ‘[[Special:MyLanguage/Clock|clock]]’ label fetches the time and stops the model once 50 ticks have elapsed.


==Nuances==
==Nuances== <!--T:11-->


<!--T:5-->
==Related Blocks==
==Related Blocks==
*{{Block|Set Label To|set [▼] label to [_]}}
*{{Block|Set Label To|set [▼] label to [_]}}
*{{Block|Data Box|[▼] data box}}
*{{Block|Data Box|[▼] data box}}


<!--T:6-->
[[Category:Interface]]
[[Category:Interface]]
[[Category:Code Block]]
[[Category:Code Block]]
</translate>

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