booleans
number | number
boolean
Approximate. Similar to round (number) = round (number) – returns true if the rounded inputs are equal. Similar to approximate
show 5.4 ~ 4.7
TRUE
boolean
word1 | word2
boolean
afterp outputs true if word1 comes after word2. To make the comparison, Logo uses the ASCII codes of the characters in the words. Note that all uppercase letters come before all lowercase letters. See beforep
show afterp "bread "apple
TRUE
boolean
number | number
boolean
Returns true if the rounded value of the first number is the same as the rounded value of the second number. Similar to ~. See round
show approximatep 5.4 4.8
TRUE
boolean
none
boolean
Returns true if the directional arrow is enabled. See showarrow, hidearrow
show arrowp
boolean
none
boolean
Returns true if the calling turtle is currently attenuating its sound.
show attenuatep
boolean
none
boolean
Returns true if autowait is set on. See audiowait
show audiowaitp
boolean
word1 | word2
boolean
beforep outputs true if word1 comes before word2. To make the comparison, Logo uses the ASCII codes of the characters in the words. Note that all uppercase letters come before all lowercase letters. See afterp
show beforep "bread "apple
FALSE
boolean
none
boolean
Returns true if blocks mode is enabled.
show blocksp
boolean
button (number)
boolean
Returns true if the specified button is pressed. 0 is the left mouse button or joypad button 0, 1 is the right mouse button or joypad button 1
show buttonp 0
boolean
none
boolean
Returns true if camcontrol is enabled.
show camcontrolp
boolean
none
boolean
Returns true if nocaseinsensitive is enabled.
show caseinsensitivep
booleans
turtle (word) | distance (number)
boolean
Returns true if the specified turtle is within the specified distance of the calling turtle. See distance
show collisionp snappy 200
TRUE
boolean
word
boolean
Returns true if the first letter of the supplied word is a consonant. Y is considered a vowel. See vowelp
show consonantp "x
TRUE
boolean
word or list | list
boolean
Returns true if the specified word exists as an item in the specified list. See contains
show containsp "frog [pig duck frog]
true
boolean
none
boolean
Returns true if debug is enabled.
show debugp
boolean
procedurename (word)
boolean
Returns TRUE if the provided procedurename is the name of a defined procedure.
show definedp "myprocedure
TRUE
boolean
numerator (number) | denominator (number)
boolean
returns true of the numerator divides evenly into the denominator. See remainder,
show divisorp 5 20
true
boolean
[x y (z)] (list)
none
Returns true if there is a dot at the specified co-ordinates. Dots are turtle-specific, and so dotp will only detect the calling turtle’s dots.
show dotp [10 20 30]
boolean
none
boolean
Returns true if dragselect is enabled
boolean
none
boolean
Returns true if turtleSpaces is currently dribbling. See dribble
booleans
none
boolean
Returns true if the current reader is at the end of the file. See reader, writer
show eofp
boolean
expression | expression
boolean
Returns true if both supplied expressions are equal
show equalp 5 5
TRUE
show equalp 3 5
FALSE
boolean
none
boolean
Returns true if escape is enabled
show escape
boolean
number
boolean
Returns true if the provided number is even (0, 2, 4, 6…)
show evenp 6
boolean
none
zero
Returns zero (false).
show false
booleans
none
boolean
Returns true if the calling turtle is in fence mode. See fence
show fencep
boolean
word
boolean
Returns true if the file specified by the given word exists.
show filep "myfile
boolean
none
boolean
Returns true if fluid is enabled in the calling turtle
show fluidp
boolean
none
boolean
Returns true if the calling turtle is following another turtle
show followp
booleans
buttom
boolean
Returns true if the specified gamepad button is currently pressed.
show gamebuttonp
boolean
none
boolean
Returns true if gradient is enabled
show gradientp
boolean
expression | expression
boolean
Returns true if the first expression is greater than or equal to the second expression.
show greaterequalp 5 3
TRUE
show greaterequalp 3 3
TRUE
boolean
expression | expression
boolean
Returns true if the first expression is greater than the second expression.
show greaterp 5 3
TRUE
show greaterp 3 5
FALSE
boolean
turtlename (word)
boolean
Returns true if the given turtlename is a hatchling.
show hatchlingp "seymour
FALSE
boolean
imagename (word)
boolean
Returns true if the specified imagename is defined.
show imagep "image
boolean
[x y z] [[x1 y1 z1] [x2 y2 z2]]
boolean
Returns true if the first set of three-dimensional co-ordinates is within the cube created between the second and third sets of coordinates.
show insidep [0 0 0] [[-10 -10 -10] [10 10 10]]
true
boolean
none
boolean
Returns true if keyclick is enabled. See keyclick
show keyclickp
booleans
none
boolean
Returns true if there are currently any keys in the keyboard buffer. Often seen with readchar, which will wait for a keypress if there are no keys in the buffer, to mitigate that behaviour. See readchar
show keyp
boolean
expression | expression
boolean
Returns true if the first expression is less than or equal to the second expression.
show lessequalp 3 5
TRUE
show lessequalp 3 3
TRUE
boolean
expression | expression
boolean
Returns true if the first expression is less than the second expression.
show lessp 3 5
TRUE
show lessp 5 3
FALSE
booleans
item
boolean
Returns true if the provided item is a list.
show listp [frog pig]
TRUE
boolean
word, longword or list
boolean
Returns true if the provided input is a long word (a word that contains spaces).
show longwordp |I am a duck|
boolean
none
boolean
Returns true if the calling turtle has any current marcos attributed to it. If a turtle is expecting a marco, it can simply wait until marcop is true. See marco
show marcop
boolean
word or list
word or list
Returns true if the result of calling member using similar parameters is not empty.
show memberp "duck [pig duck frog]
true
boolean
none
boolean
Returns true if the calling turtle is mimicking another turtle. See mimic
show mimicp
boolean
musicname (word)
boolean
Returns true if the specified music name is loaded in memory.
show musicp "mymusic
booleans
container (word)
boolean
Returns true if the specified container exists.
show namep "container
booleans
distance
boolean
Returns true if there are any (nostealth) turtles in the given distance from the calling turtle.
show nearp 200
TRUE
boolean
boolean
boolean
Reverses an input boolean, an expression that resolves to either true or false
print not 5 = 4
TRUE
boolean
none
boolean
Returns true if the playnotes primitive is currently playing.
show notesp
booleans
word
boolean
Returns true if the supplied input is a number.
show numberp 15
TRUE
show numberp "dog
FALSE
boolean
number
boolean
Returns true if the provided number is odd (1, 3, 5, 7…)
show oddp 6
booleans
none
none
Same as FALSE
show off
booleans
none
none
Same as TRUE
show on
boolean
none
boolean
Returns true if the OSD is currently on. See osd
show osdp
boolean
name (word)
boolean
Returns true if the specified overlay exists. See newoverlay
show overlayp "overlay
boolean
none
boolean
Returns true if paper mode is enabled. See paper
show paperp
boolean
none
boolean
Returns true if music is currently playing.
show playmusicp
boolean
name (word)
boolean
Returns true if the calling turtle has a procedure with the provided name.
show procp "procedure
boolean
none
boolean
Returns true if rendering is enabled. See render.
boolean
searchmask (word) | list
boolean
Returns true if the specified search would return a result. See search
show searchp "pig [pig frog duck]
TRUE
booleans
“sharename
boolean
Returns true if the specified “sharename exists.
show sharep "sharename
boolean
none
boolean
Returns true if the turtle is not hidden, false if it is.
show shownp
TRUE
boolean
soundname (word)
boolean
Returns true if the specified sound is loaded in memory.
show soundp "mysound
boolean
word
boolean
Returns true if the specified space is defined.
show spacep "home
true
boolean
none
boolean
Returns true if speckle is enabled. See speckle
show specklep
boolean
none
boolean
Returns true if the calling turtle is in stealth. See stealth, nostealth
show stealthp
boolean
none
boolean
Returns true if the specified sticker is defined. See newsticker
show stickerp
boolean
workerid
boolean
Returns true if the specified worker is suspended. See suspend, resume
show suspendp 12
boolean
none
boolean
Returns true if the calling turtle’s ‘family’ currently has an active sync. See sync
if syncp [sync]
boolean
name (word)
boolean
Returns true if the named table is defined.
show tablep "mytable
boolean
tagname (word)
boolean
Returns true if the provided tag name is presently defined. See tag
show tagp "tag
boolean
tagname (word)
boolean
Returns true if the tag with the provided tagname is currently visible (shown). See tag
show tagshownp "tag
boolean
none
boolean
Returns true if the calling turtle is tandeming another turtle. See tandem
show tandemp
boolean
none
boolean
Returns true if the calling turtle is targeting another turtle. See target
show targetp
boolean
none
boolean
Returns true if the calling turtle is tethering. See tether
show tetherp
booleans
none
boolean
Returns true if the calling turtle’s track is being generated / recorded. See track, notrack.
show trackp
booleans
none
boolean
Returns true if the calling turtle’s track is being rendered.
show trackrenderp
booleans
none
boolean
Returns true if transcript is enabled. See transcript, notranscript
booleans
none
true
Returns true. See false
show true
boolean
name (word)
boolean
Returns true if the provided name is a currently defined user.
show userp "Bonnie
true
boolean
name (word)
boolean
Returns true if the named turtle is currently the view turtle.
show viewturtlep "snappy
true
booleans
none
boolean
Returns true if the calling turtle is in view of the current view turtle
show visiblep
booleans
character
boolean
Returns true if the provided character is a vowel (a e i o u or y)
show vowelp "u
booleans
none
boolean
Returns true if the turtle is currently in ‘window’ mode. See window
show windowp
boolean
number or list | number or list | number of list
boolean
Compares two lists or numbers, returns true if they are within the variance specified by the third list of container. All three lists need to have the same number of parameters. Used mainly for comparing position / proximity of turtles.
show withinp [10 10 10] [15 15 15] [10 10 10]
true
show withinp 5 8 2
false
booleans
none
boolean
Returns true if the turtle is currently in ‘wrap’ mode. See wrap, window, fence
show wrapp
booleans
none
boolean
Returns true if the input is a word.
show wordp "word