Hey, So stop only stops the procedure, not the outside loop running from the command center. It acts more like C's "return" in this case, so it simply stops executing 'show (word "ticks: " ticks)', but not the loop.
Frank On Thu, May 28, 2015 at 04:33:38PM -0700, Alan Isaac wrote: > to setup > ca > reset-ticks > end > > to go > tick > if ticks > 100 [stop] > show (word "ticks: " ticks) > end > > > In the command center, enter `setup` and then `loop [go]`. After `show` is > called for the last time, enter `show ticks` at the command center. You > will see that we are still looping. > > My understanding is that we should break out of the `loop` when `go` > executes `stop`. Am I reading the documentation correctly? > > (NetLogo 5.2 on Win 7) > > > -- > You received this message because you are subscribed to the Google Groups > "netlogo-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
