Clock: Difference between revisions

From StarLogo Nova Wiki
No edit summary
No edit summary
Line 9: Line 9:
===Syntax===
===Syntax===


<code>clock</code>
<code>[Textbox Insert] clock</code>


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

Revision as of 10:27, 30 November 2022

Clock

clock is a code block part of the Environment drawer.

Usage

clock refers to the value of the clock, measured in “ticks”. This value increments by 1 after each iteration of the code. The speed that the clock increments is determined by the value of the engine speed slider.

Syntax

[Textbox Insert] clock

Common Uses

Mainly used to simulate the passing of time in simulations, and to prompt certain actions to take place during certain points in time.

Nuances

Related Blocks