Set Label To/en: Difference between revisions

From StarLogo Nova Wiki
(Updating to match new version of source page)
 
(Updating to match new version of source page)
Line 3: Line 3:
<section begin="image"/>
<section begin="image"/>
[[File:Set label to.png|alt=Set label to|thumb]]
[[File:Set label to.png|alt=Set label to|thumb]]
<section end="image"/>
<section end="image"/><p id="tooltip">Assigns a value to a selected label.</p>
 
<section begin="name" />{{Block|set [▼] label to [_]}}<section end="name" /> is a code block from the [[Interface]] drawer.
<section begin="name" />{{Block|set [▼] label to [_]}}<section end="name" /> is a code block from the [[Interface]] drawer.


==Usage==
==Usage==
<p id="tooltip">{{Block|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. </p>
{{Block|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===
==Syntax==
<code>set [Dropdown: Label Widget] label to [Textbox: Text/Number]</code>
<section begin=image/>[[File:SetLabel To Nums.png|right|alt=The Set Label to Block|thumb]]<section end=image/>
<!-- <code>set [Dropdown: Label Widget] label to [Textbox: Text/Number]</code> -->
Input:
#a label from the dropdown menu and then a number into the socket.


==Nuances==
==Nuances==

Revision as of 15:08, 8 August 2023

Other languages:


Set label to

Assigns a value to a selected label.

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 and then a number into the socket.

Nuances

Related Blocks