![]() ![]() You may be asked where to download the NetLogo package (stored in its own folder), or it may be automatically put into your Downloads folder. If you use or refer to NetLogo in a publication, we ask that you cite it. In the procedure of 'FirstIrrigation', I ask RiverVolumes to move to the right canal (pxcor > 18) first and then move to the left canal (pxcor 10 set shape 'dot' set size 2.5 set shape 'star' set. When using more than one boolean you must surround the whole ifelse-value primitive and its blocks in parentheses. The first one is time limitation, the second one is the CurrentStorage of the last patch along the canal. NetLogo ControlFlow extension This NetLogo extension adds somewhat experimental control-flow primitives. ![]() To illustrate, enter the following two examples at NetLogo’s command line: print ifelse-value true 1 0 print ifelse-value false 1 0 ifelse-value redux. This functionality was added in NetLogo 6.1. Currently, this extension contains a preview of the future version of the NetLogo primitives ifelse and ifelse-value that allow more than two branches. If compilation succeeds, cf.jar will be created. ![]() The ifelse-value reporter primitive can handle additional conditions, if surrounded by parentheses. The following example uses this extended syntax to produce the sign of a number. Turtle and link forever buttons will stop if there are no turtles or links in the model, as they do in desktop NetLogo. Ask patches [Ī runtime error can occur if there is no elsereporter. ![]()
0 Comments
Leave a Reply. |