Set Clock To/es: Difference between revisions

From StarLogo Nova Wiki
No edit summary
(Updating to match new version of source page)
 
(7 intermediate revisions by 2 users not shown)
Line 4: Line 4:
[[File:SetearReloja.png|alt=Set clock to|thumb]]
[[File:SetearReloja.png|alt=Set clock to|thumb]]
<section end=image/>
<section end=image/>
<section begin="name" />'''<code>set clock to [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Ambiente]] drawer.
<section begin="name" />'''<code>set clock to [_]</code>'''<section end="name" /> is a [[Special:MyLanguage/code block|bloque de código]] part of the [[Special:MyLanguage/Environment|ambiente]] drawer.


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
== Usage==
<section begin="name" />'''<code>set clock to [_]</code>'''<section end="name" /> is a [[code block]] part of the [[Environment]] drawer.
<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>
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
===Syntax===
==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.
</div>
 
<span id="Syntax"></span>
==Sintaxis==
 
[[File:Set Clock To Nums Es.png|right|alt=The Create Each Do Block|thumb]]
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Common Uses==
This is commonly used to reset the clock, which is helpful for each time you run a simulation.
</div>
 
<div lang="en" dir="ltr" class="mw-content-ltr">
==Example==
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
<code>set clock to [Textbox: Number]</code>
[[File:set_clock_to_example.gif|alt=Set Clock To example gif|thumb]]
[[File:clock_example.png|alt=Set Clock To example code|thumb]]
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
==Common Uses==
The model above depicts flowers growing with the rainfall over time. The clock is used to determine when thunderstorms start and stop: it will rain between 50 and 100, after which the clock will be reset to 0. In all, there are 50 ticks of rain followed by 50 ticks of no rain.
This is commonly used to reset the clock, which is helpful for each time you run a simulation.
</div>
</div>



Latest revision as of 15:55, 16 August 2023

Other languages:


Set clock to

set clock to [_] is a bloque de código part of the ambiente drawer.

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.

Sintaxis

The Create Each Do Block

Common Uses

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

Example

Set Clock To example gif
Set Clock To example code

The model above depicts flowers growing with the rainfall over time. The clock is used to determine when thunderstorms start and stop: it will rain between 50 and 100, after which the clock will be reset to 0. In all, there are 50 ticks of rain followed by 50 ticks of no rain.

Nuances

Related Blocks