Set Clock To: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
No edit summary
Line 12: Line 12:
<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=== <!--T:3-->
==Syntax== <!--T:3-->


<!--T:4-->
<!--T:4-->
<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> -->


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

Revision as of 16:38, 21 July 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 Block

Common Uses

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

Nuances

Related Blocks