BigM
BigM

Reputation: 11

How to change the go botton into a Loop botton on netlogo

Change the ‘go’ button from looping infinitely (‘forever’) to running for 1000 ticks.

How do I do that?

Upvotes: 0

Views: 27

Answers (1)

Luke C
Luke C

Reputation: 10301

One way, based on pure ticks:

to setup
  ca
  reset-ticks
end

to go 
  if ticks = 1000 [ stop ]
  ; Actions here
  tick
end

Upvotes: 1

Related Questions