Set Clock To: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
mNo edit summary
Line 11: Line 11:


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


Line 17: Line 17:


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

Revision as of 19:19, 10 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