abs – Reports the absolute value of the number.
acos – Reports the arc cosine of the number.
and – Reports true if (and only if) both values are tue. Otherwise, reports false.
any? – Reports true if the agentset has any members.
asin – Reports the arc sine of the number. Number much be in the range -1 ⇐ number ⇐ 1. The arcsine is the angle that has the sine.
ask – Iterates the agentset, causing each agent in the set to perform the commands.
at-points – For a patch agentset, reports the patches in which the list of points lie. For a turtle agentset, reports the turltes that lie on those patches.
atan – Reports the arc tangent of the number.
auto-plot-off – Disables auto-plotting for the current plot
auto-plot-on – Enables auto-plotting for the current plot. The plot will adjust the plot's axis scaling to fit the data sent to the plot.
autoplot? – Reports true if auto-plot is enabled for the current plot
back – Causes the turtle to move 1 unit backwards.
beep – Sounds the system default beep
bf – same as BUT-FIRST
bk – Same as BACK
black – black is a color constant equal to 0.0.
blue – blue is a color constant equal to 105.0
bl – same as BUT-LAST
both-ends – Reports the turtles conected by the current link turtle
breed(variable) – Contains the breed of the current turtle.
breed-neighbor? – Reports true if the agent is of the given breed, and an undirected link neighbor of the current turtle.
breed-neighbors – Reports the set of turtles linked to this turtle by a link of the given breed (e.g. link)
breed-with? – Reports true if the given agent is connected to the asking agent via an undirected link of the given breed.
breeds-at – Reports the agentset of the named breed standing on the patch that contains the given offset point.
breeds-from – Reports the set of turtles of the named breed collected from the results of the agentset expression as reported by the give agentset.
breeds-here – Reports the set of turtles of the named breed on the current patch.
breeds-on – Reports the set of turtles of the specified breed standing on the patches in the given patch-agentset, or standing on the same patches as the turtles in the given turtle-agentset.
breeds-own – Used to specify the user-defined variables for the named breed.
breed(keyword) – Creates the named breed.
brown – brown is a color constant equal to 35.0
but-first – Reports the list with the first item removed.
but-last – Reports the list with the last item removed.
butfirst – Same as BUT-FIRST
butlast – Same as BUT-LAST
can-move? – Reports true if the current turtle can move the number of units without crossing a closed edge.
carefully – Runs the commands in the first block, until an error occurs. Supresses any runtime errors. If an error occurs, runs the commands in the second block.
cct-breeds – Empty-please define me
cct – Same as CREATE-CUSTOM-TURTLES
cd – Same as CLEAR-DRAWING
ceiling – Reports the smallest integer greater than the number. ceiling 1.5
clear-all-plots – Resets all plots to their initial state–the settings defined in the edit plot window. Deletes all temporary pens.
clear-all – Deletes all turtles. Initializes all patch variables to zero. Clears the drawing plane. Resets all global variables to zero. Note that local variables in the present scope are not affected.
clear-drawing – Clears the drawing layer of the view.
clear-output – Clears the contents of an output-window if one is present.
clear-patches – Resets the value of all patch variables to zero.
clear-plot – Clears the current plot of data and resets the plot to its initial state–the settings defined in the plot edit window. Removes any temporary plot pens on the plot.
clear-turtles – Removes all turtles completely. similar to ASK TURTLES [ DIE ]
color – Reports the turtle's color. Use set color number to set the turtle's color.
cos – Reports the cosine of the number.
count – Reports the number of members in the agentset.
cp – Same as CLEAR-PATCHES
create-breed-from – Empty-please define me
create-breed-to – Empty-please define me
create-breed-with – Empty-please define me
create-breeds – Empty-please define me
create-custom-turtles – Creates the number of turtles. Each new turtle runs the commands.
create-temporary-plot-pen – Adds a pen to the current plot, with the label. Makes the pen current.
create-turtles – Creates the number of turtles.
crt – Same as CREATE-TURTLES
ct – Same as CLEAR-TURTLES
cyan – cyan is a color constant equal to 85.0
date-and-time – Reports a string containing the current system date and time.
die – Deletes the current turtle–the turtle stops executing commands, and is cleared from memory.
diffuse4 – Diffuses the patch variable, by the amount, between all the patches. Diffusion occures only between adjacent patches. Amount must be between 0 and 1.0.
diffuse – diffuses the patch variable, by the amount, between all the patches.. Amount must be between 0 and 1.0.
directed-link-breed – Defines the named link breed.
display – updates the world-view, and turns automatic updating back on,
distance-no-wrap – Reports the distance, without wrapping across screen-edges, from the current agent to the agent.
distance-nowrap – Reports the distance, without wrapping across screen-edges, from the current agent to the agent.
distancexy-no-wrap – Reports the distance, without wrapping across screen-edges, from the current agent to the coordinates.
distancexy-nowrap – Reports the distance, without wrapping across screen-edges, from the current agent to the coordinates.
distancexy – Reports the distance from the current agent to the coordinates. If screen-wrapping is turned on, the distance may be across a screen edge.
distance – Reports the distance from the current agent to the coordinates. If screen-wrapping is turned on, the distance may be across a screen edge.
downhill4 – Like downhill, but considers only the patches directly to the north, east, south, and west of the current patch.
downhill – Reports the turtle heading (between 0 and 359 degrees) in the direction of the minimum value of the specified patch-variable, of the patches in a one-patch radius of the turtle. (This could be as many as eight patches or as few as one patch).
dx – Reports the distance, along the x axis, that the current turtle would move, if it moved 1 unit forward at the current heading. Same result as (SIN HEADING),
dy – Reports the distance, along the y axis, that the current turtle would move, if it moved 1 unit forward at the current heading. Same result as (COS HEADING),
dz – Reports the distance, along the y axis, that the current turtle would move, if it moved 1 unit forward at the current heading. Same result as (SIN PITCH),
empty? – Same as IS-EMPTY?
end1 – Empty-please define me
end2 – Empty-please define me
end – The end keyword marks the end of a user-defined command or reporter.
error-message – Reports a string containing the description of the error that occured and was suppressed inside the first block of a CAREFULLY command. This reporter can be used only in the second block of a CAREFULLY command.
every – Runs the commands only if the number of seconds have passed since the last time this set of commands was run, within the current context.
export-all-plots – Exports(saves) the data from all the plots as an CSV text file.
export-interface – Exports(saves) the current interface as a PNG image.
export-output – Exports(saves) the current contents of the output-window (if there is one) to a text file.
export-plot – Exports (saves) the data from the current plot as a CSV text file.
export-view – Exports(saves) the current world-view as a PNG image.
export-world – Exports(saves) the current state of the NetLogo world in a CSV text file.
exp – Reports the value of E raised to the power of the number. Same as e ^ number.
extract-hsb – Reports a list containing the HSB values of the NetLogo color.
extract-rgb – Reports a list containing the RGB values of the NetLogo color.
e – The mathematical constant, 2.718281828459045.
face-no-wrap – Changes the heading of the current turtle to point towards the agent, without the heading crossing a screen edge. If the agent has the same coordinates no change and no error occurs.
face-nowrap – Same as FACE-NO-WRAP
facexy-no-wrap – Changes the heading of the current turtle to point towards the coordinates. The heading direction will not cross an edge. If the agent has the same coordinates, no change, and no error, occurs.
facexy-nowrap – Same as FACEXY-NO-WRAP
facexy – Changes the heading of the current turtle to point towards the coordinates. If the agent has the same coordinates, no change, and no error, occurs.
face – Changes the heading of the current turtle to point towards the agent. If the agent has the same coordinates no change and no error occurs.
FALSE – The boolean constant FALSE
fd – Causes the current turtle to move forward the number of units along the current heading.
file-at-end? – Reports true if the the end of the current file has been reached.
file-close-all – Closes any and all open files. No error occurs if there are no open files.
file-close – Closes the active file. The active file is the most recent file that has been opened with FILE-OPEN.
file-delete – Immediately deletes the file. An error occurs if the file does not exist.
file-exists? – Reports true if a file matching the filename exists. (Note that filename may use absolute or relative paths)
file-open – Opens the file for reading or appending. Note that the first command used to read or write from the file will set the file for reading or writing. Once set, the file must be closed and reopened to change to the opposite mode.
file-print – Writes the string to the currently open file, appending a line-end character.
file-read-characters – Reads the number of characters from the file, reports the result as a string. If there are not enought characters left in the file to read the number, an error occurs.
file-read-line – Reads a line (all characters until the next line-end characters), an reports the result as a string. The line-end characters are not included as part of the result.
file-read – Reads the next NetLogo literal entity from the currently open file, and reports the result. See FILE-WRITE for more information.
file-show – First writes the identity of the current turtle to the currently open file, then writes the result of the value, followed by a line-end character.
file-type – Writes the result of the value to the currently open file, without appending a line-end.
file-write – Writes the result of the value as a NetLogo formatted literal*, followed by a single space. No line-end is added. *Non-strings or numbers or lists are converted to strings. Strings are written with surrounding quotes. Numbers are written un-adorned. Lists are written with brackets and with contents written as appropriate (as quoted strings, numbers, or lists).
filter – Reports elements from the list that, when evaluated against the value, report true. The value uses the ? placeholder to represent the item in the list. e.g. the value ( FILTER [ ? > 0 ] [ -2 -1 3 4 ] ) reports the list ( [ 3 4 ] ). Only values in the list greater than zero were allowed through the filter.
first – Reports the first element of the list. Shorthand for ( ITEM 0 list ).
floor – Reports the largest integer that is less than or equal to the number. ( FLOOR 1.5 ) is ( 1 ). ( FLOOR -3.4 ) is ( -4.0 ). Same as INT
follow-me – The current turtle becomes the SUBJECT of the observer–the observer follows the current turtle.
follow – Causes the observer to follow the specified turtle, similar to ride, except that the view is from behind the followed turtle.
foreach – Iterates through each item of the list(s) performing the commands. When used with one list, the current list item is represented by ?. When used with multiple lists ?1 ?2, and so on.
forward – Moves the current turtle in the direction of its current heading by the number of units.
fput – Reports a copy of the list with the value appended to the front of the list.
globals – Defines the listed global variables. Global variables are available to all agents, and in all procedures.
go – Not a NetLogo command, but the typical name for the main procedure in a NetLogo program.
gray – gray is a color constant equal to 5.0
Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
green – green is a color constant equal to 55.0
Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
hatch-breeds – Causes the current turtle to create a quantity of exact copies of itself. The new turtles then run the specified commands.
hatch – Causes the current turtle to create the number of exact duplicates of itself, that then execute the commands.
heading – Reports the turtle's heading. Use set heading degrees to set the turtle's heading.
hidden? – Reports the turtle's hidden?. Use set hidden? boolean to set the turtle's hidden?. If hidden? is true, the turtle is invisible.
hide-turtle – Causes the current turtle to hide–the turtle no longer appears in the view.
hideturtle – Same as HIDE-TURTLE
histogram-from – Updates the current plot with a histogram created from the value of the expression as calculated by the members of the specified agentset.
histogram-list – Updates the current plot with a histogram created from the values contained in the list.
home – Moves the turtle to the origin.
hsb – three numbers in the range 0.0 to 1.0, reports the nearest cooresponding NetLogo color number.
ht – Same as HIDE-TURTLE
hubnet-broadcast-view – Sends the current state of the 2D view to the hubnet clients.
hubnet-broadcast – Sends to the hubnet clients the value of the exspression, for assignment to the named variable.
hubnet-enter-message? – Reports true if a new client just entered the simulation.
hubnet-exit-message? – Reports false if a client just exited the simulation.
hubnet-fetch-message – Retrieves new data sent by the clients, for access with HUBNET-MESSAGE, etc.
hubnet-message-source – Reports the name of the client that sent the most recently fetched message.
hubnet-message-tag – Reports the tag corresponing to the data in the most recently fetched messages.
hubnet-message-waiting? – Reports true if there are new messages waiting to be sent by clients.
hubnet-message – Reports the message retrieved by HUBNET-FETCH-MESSAGE.
hubnet-reset – Starts the hubnet sysem. Use before any other hubnet primitive, except HUBNET-SET-CLIENT-INTERFACE,
hubnet-send-view – Sends the view to the hubnet clients
hubnet-send – Sends data from NetLog to hubnet clients.
hubnet-set-client-interface – Sets the hubnet client interface file that new clients will be told to use.zpatch-at-heading-and-distance, hubnet-set-client-interface, hubnet-set-client-interface, hubnet-set-client-interface, ,
if-else – Evaluates the boolean value. If it is true, the first block of commands are executed. Otherwise the second block of commands are executed.
ifelse-value – The boolean value is evaluated. If the value is true, the first value block is evaluated and reported. If the value,
ifelse – Same as IF-ELSE
if – Evaluates the boolean value. If it is true, the commands are executed.
import-drawing – Imports the image into the drawing layer, scaling the image as needed to fit.
import-pcolors – Imports the image into the patches as pcolors. The image is scaled as needed to fit.
import-world – Imports the NetLogo world file.
in-breed-from – Empty-please define me
in-breed-neighbor? – Empty-please define me
in-breed-neighbors – Empty-please define me
in-cone-no-wrap – Deprecated. Use IN-CONE
in-cone – Reports the members of the agentset that lie within the cone, aligned along the,
in-radius-no-wrap – Deprecated. Use IN-RADIUS
in-radius – Reports the members of the agentset with centers that fall within the radius from the calling agent,
inspect – Opens an inspector window for the agent
int – Reports the largest integer less than or equal to the number. Similar to FLOOR. ( INT 1.3 )
is-agent? – Reports true if the value reports an agent
is-agentset? – Reports true if the value reports an agentset
is-boolean? – Reports true if the value reports a boolean value
is-breed? – Reports true if the agent is of the specified breed.
is-link? – Reports TRUE if the agent is a link
is-list? – Reports true if the value reports a list
is-number? – Reports true if the value reports a number
is-patch-agentset? – Reports true if the value reports a patch agentset
is-patch? – Reports true if the value reports a patch
is-string? – Reports true if the value reports a string
is-turtle-agentset? – Reports true if the value reports a turtle agentset
is-turtle? – Reports true if the value reports a turtle
item – Reports an item from a list.
jump – The current turtle moves forward the distance. Uses only 1 time-step.
label-color – Reports the turtle's label-color. Use set label-color number to set the turtle's label-color.
label – Reports the turtle's label. Use set label value to set the turtle's label.
last – Reports the last item in the list
layout-circle – Empty-please define me
layout-magspring – Empty-please define me
layout-radial – Empty-please define me
layout-spring – Empty-please define me
layout-tutte – Empty-please define me
left – Changes the turtle's heading by rotating the turtle widdershins by the number of degrees
length – Reports the number of items contained in the list
let – Creates a local variable using the name, and store the value of the value in it.
lime – lime is a color constant equal to 65.0
Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
line-thickness – Gets or sets the thickness of the line used to draw the current link.
links – links, Reports
list? – Deprecated. Same as IS-LIST?
list – Reports a list containing the values. Normally requires two values. Use parentheses to use other numbers of values.
ln – Reports the natural logarithm of the number.
locals – DEPRECATED. Use LET to create local variables where needed. LOCALS creates the listed local variables.
log – Reports the base 10 logarithm of the number.
loop – Runs the commands repeatedly, forever. Use EXIT inside the LOOP to stop it.
lput – Reports the result of appending the value of the value to the end of the list.
lt – Same as LEFT
magenta – magenta is a color constant equal to 125.0
Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
map – Reports the list resulting from running each item in the list against the replacement value. Use the ? placeholder in the value to represent the list item
max-one-of – Reports the member of the agentset reporting the maximum value for the value.
max-pxcor – Reports the maximum pxcor possible in the current world configuration.
max-pycor – Reports the maximum pycor possible in the current world configuration.
max – Reports the maximum value from the list.
mean – Reports the arithmatic mean (aka: the average) of the list.
median – Reports the median (aka the middle most value) of the list.
member? – Reports true if the agent is a member of the agentset
message – Displays a pop-up dialog message.
min-one-of – Reports the agent from the agentset reporting the minimum value for the value.
min-pxcor – Reports the minimum pxcor possible in the current world configuration.
min-pycor – Reports the minimum pycor possible in the current world configuration.
min – Reports the minimum value from the list.
modes – Reports a list of the most frequently occuring items in the list.
mod – Reports the modulus of the first number divided by the second. The modulus is the remainder, but the sign of the remainder is not preserved.
mouse-down? – Reports true if the mouse button is down when the reporter runs.
mouse-inside? – Reports true if the mouse pointer is currently inside the world-view
mouse-xcor – Reports the current x coordinate of the mouse pointer (relative to the world-view)
mouse-ycor – Reports the current x coordinate of the mouse pointer (relative to the world-view)
movie-cancel – Cancels the currently active movie.
movie-close – Closes and saves the currently active movie.
movie-grab-interface – Saves the interface pane as a frame of the movie
movie-grab-view – Saves the world-view as a frame of the movie
movie-set-frame-rate – Sets the movie frame rate.
movie-start – Prepares to record a new movie to be stored in the given file.
movie-status – Reports a string describing the current movie if there is one.
my-breeds – Empty-please define me
my-in-breeds – Empty-please define me
my-out-breeds – Empty-please define me
myself – Reports the agent that is controlling the current agent.
n-of – Reports an agentset containing a number of agents selected randomly from the agentset
n-values – Reports a list with the number of elements specified. Each element contains a value derived from the value. ? in the value is replaced by the index number.
neighbors-nowrap – Deprecated. use NEIGHBORS with the correct world-wrap settings
neighbors4-nowrap – Deprecated. use NEGIHBORS4 with the correct world-wrap settings.
neighbors4 – Reports the set of 4 patches adjacent to the current patch (or the patch the current turtle is on).
neighbors – Reports the set of 8 patches surrounding the current patch (or the patch the current turtle is on).
netlogo-version – Reports the current NetLogo version number
new-seed – Reports a number suitable for seeding the random number generator.
no-display – Disables world-view appearance updates.
not – not boolean-value, Reports the opposite of the value of the boolean value. (not true) , ( false ),
nsum4 – Reports the sum of the value of the value as reported by the 4 adjacent neighbor patches.
nsum – Reports the sum of the value of the value as reported by the 8 surrounding neighbor patches.
number? – Same is IS-NUMBER?
of – [ expression ] of agent\\[ expression ] of agentset, Given an agent, reports the value of the expression as calculated by that agent.\\Given an agentset, reports a list containing the values of the expression as caluculated by each agent in the agentset.
one-of – Reports a single, randomly selected agent from the agentset.
openurl – Reports the entire contents of the file desiganted by the given URL as a string.
orange – orange is a color constant equal to 25.0
or – boolean-value-1 or boolean-value-2, Reports FALSE if, and only if, both both values are false. Otherwise, reports TRUE.
other-breeds-here – Reports an agentset containing all the turtles of the given breed sharing this patch with the calling turtle, excluding the calling turtle from the set.
other-end – Empty-please define me
other-turtles-here – Reports an agentset containing all turtles on the same patch as the current turtle, except for the current turtle itself.
out-breed-neighbor? – Empty-please define me
out-breed-neighbors – Empty-please define me
out-breed-to – Empty-please define me
output-print – If it exists, the value of the value is printed in the output-window control, otherwise the it is printed in the command-center display. A newline is also added.
output-show – Like OUTPUT-PRINT, but the printing is preceeded by the identity of the agent producing the output.
output-type – Like OUTPUT-PRINT, but a newline is not printed after.
output-write – Like OUPUT-PRINT, but strings are surrounded by quotes and a space is appended,
output – Same as REPORT. Use in a reporter defintion to end the reporter and report the given value.
patch-agentset? – Same as IS-PATCH-AGENTSET?
patch-ahead – Reports the patch that is the distance directly ahead of the current turtle.
patch-at-heading-and-distance – Empty-please define me
patch-at – Reports the patch that contains the relative coordinates provided.
patch-here – Reports the patch that the current turtle is standing upon.
patch-left-and-ahead – Empty-please define me
patch-right-and-ahead – Empty-please define me
patch? – Same as IS-PATCH?
patches-from – Agents in the given agentset run the expression, which should report patches or patch agentsets. The results are combined into a single agentset.
patches-own – Specifies user-defined variables available to the patches.
patches – Used to access the set of all patches.
patch – Reports the patch identified by the pxcor and pycor.
pcolor – Reports the patch's pcolor. Use set pcolor number to set the patch's pcolor.
pd – Same as PEN-DOWN
pen-down – Sets the turtle's drawing pen to down. This causes the turtle to draw a line in the drawing layer as it moves.
pen-erase – Sets the turtle's drawing pen to erase. This causes the turtle to erase a line in the drawing layer as it moves.
pen-mode – Empty-please define me
pen-size – Empty-please define me
pen-up – Sets the turtle's drawing pen to up. The turtle does not draw a line in the drawing layer while the pen is up.
pendown – Same as PEN-DOWN
penup – Same as PEN-UP
pe – Same as PEN-ERASE
pink – pink is a color constant equal to 135.0
Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
pi – A constant containing the ratio of the circumference of a circle to its diameter, 3.141592653589793. Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
plabel-color – Reports the patch's plabel-color. Use set plabel-color number to set the patch's plabel-color.
plabel – Reports the patch's plabel. Use set plabel value to set the patch's plabel.
plot-name – Empty-please define me
plot-pen-down – Empty-please define me
plot-pen-reset – Empty-please define me
plot-point – Empty-please define me
plot-x-max – Empty-please define me
plot-x-min – Empty-please define me
plot-y-max – Empty-please define me
plot-y-min – Empty-please define me
plotxy – Plots a point in the current plot with the current plot pen.
plot – Using the current plot and plot pen, the value of the value is plotted.
position – Empty-please define me
ppd – Same as PLOT-PEN-DOWN
ppu – Same as PLOT-PEN-UP
precision – Rounds the number to the specified number of decimal digits.
print – Ouputs the value of the expression to the command center, appending a new-line at the end.
pu – Same as PEN-UP
pxcor – Reports the patch's pxcor. Use set pxcor number to set the patch's pxcor.
pycor – Reports the patch's pycor. Use set pycor number to set the patch's pycor.
random-exponential – Reports a random number from an exponential distribution with the given mean
random-float – Reports a random number from an even distribution between 0 and the max-value, but never including the max-value.
random-gamma – Reports a random number from a gamma distribution with the given alpha and lambda.
random-int-or-float – Reports the same as either RANDOM or RANDOM-FLOAT, depending on the input. If the input is an integer, the result is the same as RANDOM.
random-normal – Reports a random number from a normal distribution with the mean and standard deviation provided.
random-poisson – Reports a random number from a poisson distribution with the given mean.
random-pxcor – Reports a random integer that is a valid pxcor
random-pycor – Reports a random integer that is a valid pycor
random-seed – Initialized the random number generator with the seed.
random-xcor – Reports a random number that is a valid turtle xcor
random-ycor – Reports a random number that is a valid turtle ycor
random – Reports a random integer bewteen zero and the number, not including the number.
read-from-string – Interprest the string as if it was a value typed in the command center. Can be used to convert a string that looks like a number into the number.
reduce – Reduces the list to a single value, by repeatedly applying the reduction expression to the list items,
red – red is a color constant equal to 15.0
reload-extensions – Causes the model to reload the extensions. Useful when developing extensions and the loaded extensions have been changed.
reload – Causes the model to reload itself from disk.
remainder – Reports the remainder of dividing the first number by the second. Like MOD, but the result retains the signs of the operands.
remove-breed-from – Deletes the directional link turtle of the given breed coming from the given agent.
remove-breed-to – Deletes the directional link turtle of the given breed going to the given agent.
remove-breed-with – Deletes the non-directional link turtle of the given breed connecting the current turtle with the given agent.
remove-duplicates – Reports a copy of the list with duplicate items removed. That is, leaving only the first item of any value that appears in the list more than once.
remove-item – Reports a copy of the list with the item at the index removed.
remove – Reports a copy of the list with the first item containing the value removed.
repeat – Executes the commands number times.
replace-item – Reports a copy of the list with the item at the index replaced with the value
report – Ends execution of a user-defined reporter, reporting the value.
reset-perspective – Empty-please define me
reset-timer – Resets the NetLogo timer to 0.0
reverse – Reports a copy of the list with the order of the elements reversed.
rgb – Reports the NetLogo Color closest to the RGB color specified. The numbers must be in the range 0.0 to 1.0 inclusive.
ride-me – Empty-please define me
ride – Empty-please define me
right – Changes the turtle's heading by rotating the turtle to the right (clockwise)
round – Reports the number rounded up or down to the nearest integer. ( round 0.5 )
rp – Empty-please define me
rt – Same as RIGHT
run-result – Given a string containing a valid NetLogo expression, reports the results of that expression,
runresult – Same as RUN-RESULT
run – Compiles and Runs the NetLogo code contained in the string
scale-color – Reports a NetLogo color, tinted to correspond proportionally to the location of the value of expression within min-range and max-range.
self – Reports (a reference to) the current agent, itself,
sentence – Reports the combination of list-1 and list-2 into a single list.
set-current-directory – Sets the default directory used by file input and output commands.
set-current-plot-pen – Makes the named pen (in the current plot) the current pen.
set-current-plot – Makes the named plot the current plot. Subsequent plotting commands will apply to this plot.
set-default-shape – Sets the shape that will be automatically applied to new members of the given breed.
set-histogram-num-bars – Sets the number of histogram divisions to use in the current plot
set-line-thickness – Sets the thickness of lines used to draw the current turtle's shape.
set-line-thickness – Sets the thickness of lines used to draw the current turtle's shape.
set-plot-pen-color – Sets the color of the current plot pen in the current plot.
set-plot-pen-interval – Sets the interval of the current plot pen in the current plot.
set-plot-pen-mode – Sets the pen mode of the current plot pen in the current plot.
set-plot-x-range – Sets the x axis range in the current plot.
set-plot-y-range – Sets the y axis range in the current plot.
setup – The name of a typical user defined procedure, typically used to produce the initial configuration of the model.
setxy – Moves the turtle to the coordinates.
set – Stores the result of value in the variable
se – Same as SENTENCE
shade-of? – Reports two if the two colors are shades of the same color. ( shade-of? red 18 ) , ( TRUE ),
shapes – Reports a list containing the names of all the turtle shapes defined in the model.
Example:
print one-of shapes
shape – Contains the string that names the shape of the tutrtle. Change with SET shape shape-name-string.
show-turtle – Sets the HIDDEN? variable of the turtle to FALSE. Causes the turtle to be visible in the world-view.
showturtle – Same as SHOW-TURTLE
show – Ouputs the value of the expression to the command center, pre-pending the identity of the current agent, followed by a new-line,
shuffle – Reports a copy of the list with the elements randomly re-ordered
sin – Reports the sine of the angle
size – Contains the size of the turtle. Change with SET size number. 1.0 is the default size.
sky – sky is a color constant equal to 95.0
sort-by – Reports a copy of the list, sorted using the criteria.
sort –
sprout-breeds – The current patch creates a number of turtles of the specified breed, that immediately run the commands.
sprout – The current patch creates a number of turtles, that immediately run the commands.
sqrt – Reports the square root of the number
stamp-erase – Causes the turtle to erase the drawing layer with the shadow of its current appearance.
stamperase – Same as STAMP-ERASE
stamp – Causes the turtle to impress an image of its current appearance on the drawing layer.
standard-deviation – Reports the unbiased statistical standard deviation of a list of numbers. Non-numbers in the list are ignored.
startup – The startup procedure, if it exsts, is always run when the model is opened, or after the model reloads with the __RELOAD command.
stop – Causes command execution to stop. The current procedure exits immediately. If the procedure is the outermost procedure in a forever button, the button stops.
string? – Same as IS-STRING?
st – Same as SHOW-TURTLE
subject – Reports a reference to the agent that is currently being FOLLOWed or WATCHed.
sublist – Reports a list of elements from the list starting with start-index, and ending with the element just before end-index.
substring – Reports a sub-string of string starting as start-pos and ending with the character just before end-pos.
subtract-headings – Reports the difference, in degrees, between the two headings. ( subtract-headings 5 355 ) is ( -10 ),
sum – Reports the sum of the number elements in the list
equals – Reports true if the values of both expressions are equal.
greater than or equal to – Reports true if expression1 is greater than or equal to expression2.
greater than – Reports TRUE if the value of the first expression is greater than the value of the second expression.
les than or equal to – Reports true if expressions1 is less than or equal to expression2.
less than – Reports TRUE if the value of the first expression is less than the value of the second expression.
minus symbol – Subtraction operator. Reports the difference of the two operands.
multiplication symbol – Multiplication operator. Reports the product of the two operands.
not equal to – Reports true if the values of the expressions are not equal.
addition symbol – Addition operator. Reports the sum of the operands.
place holder – A replacement parameter. Some commands, such as foreach and map, use these. See details.
division symbol – Division operator. Reports the quotient of the two operands.
square brackets – Square brackets are used in many contexts in NetLogo. See ask, if, foreach, with, of, while, and others.
tan – Reports the tangent of the angle
ticks – Reports the current value of the model clock counter.
tick – Increments the model clock counter by 1, and if the display update mode is on ticks, the view is updated.
tie – Establishes a relationship between the endpoints of the current link, where end2 moves to track movement and rotation of end1.
timer – Reports the number of seconds since NetLogo started.
towards-no-wrap – Like towards, but the reported heading will never cross the screen edge.
towards-nowrap – Same as TOWARDS-NO-WRAP
towardsxy-no-wrap – Like towardsxy, except that the heading will never cross a screen edge.
towardsxy-nowrap – Same as towardsxy-no-wrap
towardsxy – Reports the heading towards the coordinates from the current agent, aby the shortest distance. If wrapping is enabled, the heading may point across the screen edge.
towards – Reports the heading towards the agent from the current agent, aby the shortest distance. If wrapping is enabled, the heading may point across the screen edge.
to – Indicates the beginning of a user-defined command procedure. See also: TO-REPORT
true – The boolean constant TRUE
turquoise – turquoise is a color constant equal to 75.0
Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
turtle-agentset? – Same as IS-TURTLE-AGENTSET?
turtle? – Same as IS-TURTLE?
turtles-at – Reports the set of turtles on the patch that contains the point at the offset coordinates.
turtles-from – Reports an agentset of turtles. Each agent in agentset runs the expression, which should be an expression that reports a turtle or a turtle agentset. The results are collected into a single agenset.
turtles-here – Reports the agentset of turtles standing on the same patch as the calling agent. If the calling agent is a turtle, the set includes the calling turtle.
turtles-on – Reports the agentset of turtles standing on the patches in the agentset.
turtles-own – Create user-defined variables for the turtles.
turtles – Reports the set of all current turtles. However, when assigned to a variable, does not store the set, just a reference to the set.
turtle – Reports a reference to the specified turtle.
type – Ouputs the value of the expression to the command center, without appending a new-line at the end.
undirected-link-breed – Defines an undirected link breed with the given name
untie – Breaks the previously established tie.
uphill4 – Reports the heading towards the patch among the 4 adjacent patches that contains the maximum value for the patch-variable given.
uphill – Reports the heading towards the patch within a 1 unit radius of the turtle that contains the maximum value for the patch-variable given.
user-directory – Displays the system file selection dialog, prompting the user to select a directory. Reports the directory path, or FALSE if the user clicked CANCEL.
user-file – DIsplays the system file-selection dialog, prompting the user to select a file. Reports the file path, or FALSE if the user clicked CANCEL.
user-input – Prompts the user for a line of input. Reports the input, or FALSE, if the user clicked CANCEL.
user-message – Displays a pop-up dialog box displaying the message to the user.
user-new-file – Displays the system file-selction dialog, and prompts the user to select a new file. Reports the filename. If the user clicked CANCEL, reports FALSE.
user-one-of – Prompts the user to select on of a list of items. Reports the selected item.
user-yes-or-no? – Prompts the user to respond either Yes or No to the question. Reports TRUE if the user chooses Yes.
value-from – Reports the result of the value, calculated from the point of view of the agent.
values-from – Reports a list of the value of the value, as calculated by each agent in agentset.
variable-of – Reports the value of the variable for the non-current agent.
variance – Reports the sample variance of a list of numbers. Non-numbers in the list are ignored.
violet – violet is a color constant equal to 115.0
Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
wait – Pauses command execution for the given number of seconds (or fractions of a second).
watch-me – asks the observer to watch the calling agent. This puts a spotlight on the agent.
watch – Puts a spotlight on the agent.
while – The expression is evaluated. If the expression is TRUE, the commands are exectuted. Then the expression is evaluated again. If the expression remains true, the commands are executed again, and so on.
white – white is a color constant equal to 9.9
Constants can be used in lists as if they were literal values, e.g. <code netlogo4>print [ red green blue]<
who – The turtle who variable contains a number unique to that turtle. Turtle who numbers are assigned sequentially, as the turtles are created. Turtle numbers of dead turtles are recycled.
with-max – agentset with-max [ value ], Reports the set of agents in the agentset that report the maximum value of the value,
with-min – agentset with-min [ value ], Reports the set of agents in the agentset that report the minimum value of the value,
without-interruption – Causes execution of commands to occur without any command interleaving, as may occur during an ASK.
with – agentset with [ boolean-value ], Reports the set of agents from agentset that report true for the value. In other words, every agent in agentset calculates the value, from its own point-of-view. If the result is true, the agent becomes a member of the reported agentset.
word – Reports the combination of the values–converts non-string expresions into strings. Use with parentheses to use other than the default two parameters.
world-depth – Reports the depth of the world–the number of patches in and out.(3D Only)
world-height – Reports the width of the world–the number of patches up and down.
world-width – Reports the width of the world–the number of patches across.
wrap-color – Reports the number, wrapped to the range for NetLogo Colors, 0 <, n < 140. In other words, if the number is not in the range 0 <, n < 140, repeatedly adds or subtracts 140 until the number is in range.
write – Ouputs the value of the expression to the command center, surrounding strings with quotes, appending a space, and without appending a new-line at the end.
xcor – Contains the x coordinate of the turtle. SET xcor number to change.
xor – number xor number, Reports the exclusive-or of the numbers.
ycor – Contains the y coordinate of the turtle. SET ycor number to change.
yellow – yellow is a color constant equal to 45.0
zcor – Contains the z coordinate of the turtle. SET zcor to change. NetLogo 3D Only.
dump-extension-prims – Empty-please define me
dump-extensions – Empty-please define me
dump-models – Empty-please define me
dump – Empty-please define me
reload-extensions – Causes the model to reload the extensions. Useful when developing extensions and the loaded extensions have been changed.
reload – Causes the model to reload itself from the source file.