Set Clock To: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Marked this version for translation)
Line 2: Line 2:
<translate>
<translate>


<!--T:1-->
<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]]
Line 7: Line 8:
<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.


<!--T:2-->
== 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>
<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>


===Syntax===
===Syntax=== <!--T:3-->


<!--T:4-->
<code>set clock to [Textbox: Number]</code>
<code>set clock to [Textbox: Number]</code>


<!--T:5-->
==Common Uses==
==Common Uses==
This is commonly used to reset the clock, which is helpful for each time you run a simulation.
This is commonly used to reset the clock, which is helpful for each time you run a simulation.


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


<!--T:7-->
==Related Blocks==
==Related Blocks==
*<code>[[Clock|clock]]</code>
*<code>[[Clock|clock]]</code>

Revision as of 14:49, 27 June 2023

Other languages:


Set clock to

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 [Textbox: Number]

Common Uses

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

Nuances

Related Blocks