Set Clock 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 clock to.png|alt=Set clock to|thumb]]
[[File:Set clock to.png|alt=Set clock to|thumb]]
<section end=image/>
<section end=image/><p id="tooltip">Sets the value of clock to some number. Typically, when you reset the clock, you want to start it at 0.</p>
 
<section begin="name" />'''<code>set clock to [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer.
<section begin="name" />'''<code>set clock to [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer.


== Usage==
== Usage==
<p id="tooltip"><code>set clock to [_]</code> sets the value of clock to some number. Typically, when you reset the clock, you want to start it at 0.</p>
<code>set clock to [_]</code> sets the value of clock to some number. Typically, when you reset the clock, you want to start it at 0.


===Syntax===
==Syntax==


<code>set clock to [Textbox: Number]</code>
<section begin=image/>[[File:Set Clock To Nums.png|right|alt=Set Clock To Block|thumb]]<section end=image/>
<!-- <code>set clock to [Textbox: Number]</code> -->
Inputs:
#a number


==Common Uses==
==Common Uses==

Revision as of 15:01, 8 August 2023

Other languages:


Set clock to

Sets the value of clock to some number. Typically, when you reset the clock, you want to start it at 0.

set clock to [_] is a code block part of the Environment drawer.

Usage

set clock to [_] sets the value of clock to some number. Typically, when you reset the clock, you want to start it at 0.

Syntax

Set Clock To Block

Inputs:

  1. a number

Common Uses

This is commonly used to reset the clock, which is helpful for each time you run a simulation.

Nuances

Related Blocks