Repeat Times

From StarLogo Nova Wiki
This page contains changes which are not marked for translation.
Other languages:
The Repeat Times Block

Repeats the procedure(s) a specified number of times.

Syntax

Inputs in this block:

  1. a number

Example

Repeat Times example gif
Repeat Times example code

In this model each agent leaves a stamp of a color which is repeated 15 times before it moves to the next color and repeats. Note that without the use of the yield statement the instructions would be completed in one tick of the clock.