boolean
- ~
- afterp
- approximatep
- archonp
- arrowp
- attenuatep
- audiowaitp
- baleactivep
- baleindexp
- balep
- balepausedp
- balesyncp
- beforep
- blocksp
- buttonp
- camcontrolp
- caseinsensitivep
- collisionp
- consonantp
- containsp
- databasep
- debugp
- definedp
- dictionaryp
- divisorp divp
- dotp
- dragselectp
- dribblep
- elevationsnapp
- eofp
- equalp
- escapep
- evenp
- false
- fencep
- filep
- fluidp
- followp
- frozenp
- gamebuttonp
- gradientp
- greaterequalp
- greaterp
- hatchlingp
- imagep
- insidep
- keyclickp
- keyp
- lessequalp
- lessp
- listp
- lockelevationp
- longwordp
- marcop
- memberp
- mimicp
- missilep
- musicp
- namep
- nearmissilep
- nearp
- not
- notesp
- numberp
- oddp
- onp
- osdp
- overlayp
- paperp
- playmusicp
- procp
- renderp
- searchp
- sharep
- shownp
- sleepoverp
- soundp
- spacep
- specklep
- stealthp
- stickerp
- stlbackingp
- suspendp
- syncp
- tablep
- tagp
- tagshownp
- tandemp
- targetp
- tetherp
- trackp
- trackrenderp
- transcriptp
- true
- turtlep
- userp
- viewturtlep
- visiblep
- vowelp
- windowp
- withinp
- wrapp
- wordp
~
Takes: number | number
Returns: 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
afterp
Takes: word1 | word2
Returns: 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
approximatep
Takes: number | number
Returns: 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
archonp
Takes: none
Returns: boolean
Returns true if the archon (or main thread, used by the console) is executing.
show archonp
arrowp
Takes: none
Returns: boolean
Returns true if the directional arrow is enabled. See showarrow, hidearrow
show arrowp
attenuatep
Takes: none
Returns: boolean
Returns true if the calling turtle is currently attenuating its sound.
show attenuatep
audiowaitp
Takes: none
Returns: boolean
Returns true if autowait is set on. See audiowait
show audiowaitp
baleactivep
Takes: name (word)
Returns: boolean
Returns true if the bale of the specified name is currently active or running.
show baleactivep "bale
baleindexp
Takes: bale (word) | index (number)
Returns: boolean
Returns true if the turtle of the given index inside the given bale exists / is active. See newbale, baleindex
show baleindexp "bale 5
balep
Takes: name (word)
Returns: boolean
Returns true if the given bale name exists. See newbale
show balep "bale
balepausedp
Takes: name (word)
Returns: boolean
Returns true if the bale of the given name is currently paused. See pausebale, resumebale
show balepausedp
balesyncp
Takes: bale (word)
Returns: boolean
Returns true if the given bale is syncing. See balesync
show balesyncp "mybale
beforep
Takes: word1 | word2
Returns: 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
blocksp
Takes: none
Returns: boolean
Returns true if blocks mode is enabled.
show blocksp
buttonp
Takes: button (number)
Returns: 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, 2 is both buttons, 3 is zoom in and 4 is zoom out.
show buttonp 0
camcontrolp
Takes: none
Returns: boolean
Returns true if camcontrol is enabled.
show camcontrolp
caseinsensitivep
Takes: none
Returns: boolean
Returns true if nocaseinsensitive is enabled.
show caseinsensitivep
collisionp
Takes: turtle (word) | distance (number)
Returns: boolean
Returns true if the specified turtle is within the specified distance of the calling turtle. See distance
show collisionp snappy 200
TRUE
consonantp
Takes: word
Returns: 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
containsp
Takes: word number or list | list
Returns: boolean
Returns true if the specified word or number exists as an item in the specified list. See contains
show containsp "frog [pig duck frog]
true
show containsp 1 [1 2 3 4 5]
databasep
Takes: databasename (word)
Returns: boolean
Returns true if the given databasename is a defined database. See newdatabase
show databasep "mydb
debugp
Takes: none
Returns: boolean
Returns true if debug is enabled.
show debugp
definedp
Takes: procedurename (word)
Returns: boolean
Returns TRUE if the provided procedurename is the name of a defined procedure.
show definedp "myprocedure
TRUE
dictionaryp
Takes: dictionary (word)
Returns: boolean
Returns true if the specified dictionary is currently defined. See dictionary, newdictionary
show dictionaryp "mydict
divisorp divp
Takes: numerator (number) | denominator (number)
Returns: boolean
returns true of the numerator divides evenly into the denominator. See remainder,
show divisorp 5 20
true
dotp
Takes: [x y (z)] (list)
Returns: 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]
dragselectp
Takes: none
Returns: boolean
Returns true if dragselect is enabled
dribblep
Takes: none
Returns: boolean
Returns true if turtleSpaces is currently dribbling. See dribble
elevationsnapp
Takes: none
Returns: boolean
Returns true if the calling turtle has elevationsnap enabled.
show elevationsnapp
eofp
Takes: none
Returns: boolean
Returns true if the current reader is at the end of the file. See reader, writer
show eofp
equalp
Takes: expression | expression
Returns: boolean
Returns true if both supplied expressions are equal
show equalp 5 5
TRUE
show equalp 3 5
FALSE
escapep
Takes: none
Returns: boolean
Returns true if escape is enabled
show escape
evenp
Takes: number
Returns: boolean
Returns true if the provided number is even (0, 2, 4, 6…)
show evenp 6
false
Takes: none
Returns: zero
Returns zero (false).
show false
fencep
Takes: none
Returns: boolean
Returns true if the calling turtle is in fence mode. See fence
show fencep
filep
Takes: word
Returns: boolean
Returns true if the file specified by the given word exists.
show filep "myfile
fluidp
Takes: none
Returns: boolean
Returns true if fluid is enabled in the calling turtle
show fluidp
followp
Takes: none
Returns: boolean
Returns true if the calling turtle is following another turtle
show followp
frozenp
Takes: word
Returns: boolean
Returns true if a frozen track with the name of the given word exists.
show frozenp "myfrozentrack
gamebuttonp
Takes: buttom
Returns: boolean
Returns true if the specified gamepad button is currently pressed.
show gamebuttonp
gradientp
Takes: none
Returns: boolean
Returns true if gradient is enabled
show gradientp
greaterequalp
Takes: expression | expression
Returns: 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
greaterp
Takes: expression | expression
Returns: boolean
Returns true if the first expression is greater than the second expression.
show greaterp 5 3
TRUE
show greaterp 3 5
FALSE
hatchlingp
Takes: turtlename (word)
Returns: boolean
Returns true if the given turtlename is a hatchling.
show hatchlingp "seymour
FALSE
imagep
Takes: imagename (word)
Returns: boolean
Returns true if the specified imagename is defined.
show imagep "image
insidep
Takes: [x y z] [[x1 y1 z1] [x2 y2 z2]]
Returns: 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
keyclickp
Takes: none
Returns: boolean
Returns true if keyclick is enabled. See keyclick
show keyclickp
keyp
Takes: none
Returns: 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
lessequalp
Takes: expression | expression
Returns: 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
lessp
Takes: expression | expression
Returns: boolean
Returns true if the first expression is less than the second expression.
show lessp 3 5
TRUE
show lessp 5 3
FALSE
listp
Takes: item
Returns: boolean
Returns true if the provided item is a list.
show listp [frog pig]
TRUE
lockelevationp
Takes: none
Returns: boolean
Returns true if the calling turtle has lockelevation enabled.
show lockelevationp
longwordp
Takes: word, longword or list
Returns: boolean
Returns true if the provided input is a long word (a word that contains spaces).
show longwordp |I am a duck|
marcop
Takes: none
Returns: 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
memberp
Takes: word or list
Returns: word or list
Returns true if the result of calling member using similar parameters is not empty.
show memberp "duck [pig duck frog]
true
mimicp
Takes: none
Returns: boolean
Returns true if the calling turtle is mimicking another turtle. See mimic
show mimicp
missilep
Takes: id (word)
Returns: boolean
Returns true if a missile of the given id exists / is active. See newmissile
show missilep "id
musicp
Takes: musicname (word)
Returns: boolean
Returns true if the specified music name is loaded in memory.
show musicp "mymusic
namep
Takes: container (word)
Returns: boolean
Returns true if the specified container exists.
show namep "container
nearmissilep
Takes: class (word) | distance (turtle-units)
Returns: boolean
Returns true if a missile of the given class exists within the given distance of the calling turtle. See newmissile
show nearmissilep "missile 20
nearp
Takes: distance
Returns: boolean
Returns true if there are any (nostealth) turtles in the given distance from the calling turtle.
show nearp 200
TRUE
not
Takes: boolean
Returns: boolean
Reverses an input boolean, an expression that resolves to either true or false
print not 5 = 4
TRUE
notesp
Takes: none
Returns: boolean
Returns true if the playnotes primitive is currently playing.
show notesp
numberp
Takes: word
Returns: boolean
Returns true if the supplied input is a number.
show numberp 15
TRUE
show numberp "dog
FALSE
oddp
Takes: number
Returns: boolean
Returns true if the provided number is odd (1, 3, 5, 7…)
show oddp 6
onp
Takes: name (word)
Returns: boolean
Returns true if a trigger of the given name is defined in the calling turtle. See on
show onp "trigger
TRUE
osdp
Takes: none
Returns: boolean
Returns true if the OSD is currently on. See osd
show osdp
overlayp
Takes: name (word)
Returns: boolean
Returns true if the specified overlay exists. See newoverlay
show overlayp "overlay
paperp
Takes: none
Returns: boolean
Returns true if paper mode is enabled. See paper
show paperp
playmusicp
Takes: none
Returns: boolean
Returns true if music is currently playing.
show playmusicp
procp
Takes: name (word)
Returns: boolean
Returns true if the calling turtle has a procedure with the provided name.
show procp "procedure
renderp
Takes: none
Returns: boolean
Returns true if rendering is enabled. See render.
searchp
Takes: searchmask (word) | list
Returns: boolean
Returns true if the specified search would return a result. See search
show searchp "pig [pig frog duck]
TRUE
sharep
Takes: “sharename
Returns: boolean
Returns true if the specified “sharename exists.
show sharep "sharename
shownp
Takes: none
Returns: boolean
Returns true if the turtle is not hidden, false if it is.
show shownp
TRUE
sleepoverp
Takes: nonbe
Returns: boolean
Returns true if the time taken between occurrences of a sleep command provided with a single-item list parameter, eg sleep [50] has exceeded that provided value. See sleepover
show sleepoverp
soundp
Takes: soundname (word)
Returns: boolean
Returns true if the specified sound is loaded in memory.
show soundp "mysound
spacep
Takes: word
Returns: boolean
Returns true if the specified space is defined.
show spacep "home
true
specklep
Takes: none
Returns: boolean
Returns true if speckle is enabled. See speckle
show specklep
stealthp
Takes: none
Returns: boolean
Returns true if the calling turtle is in stealth. See stealth, nostealth
show stealthp
stickerp
Takes: none
Returns: boolean
Returns true if the specified sticker is defined. See newsticker
show stickerp
stlbackingp
Takes: none
Returns: boolean
Returns true if stlbacking is enabled, otherwise false. See stlbacking, nostlbacking
show stlbackingp
suspendp
Takes: workerid
Returns: boolean
Returns true if the specified worker is suspended. See suspend, resume
show suspendp 12
syncp
Takes: none
Returns: boolean
Returns true if the calling turtle’s ‘family’ currently has an active sync. See sync
if syncp [sync]
tablep
Takes: name (word)
Returns: boolean
Returns true if the named table is defined.
show tablep "mytable
tagp
Takes: tagname (word)
Returns: boolean
Returns true if the provided tag name is presently defined. See tag
show tagp "tag
tagshownp
Takes: tagname (word)
Returns: boolean
Returns true if the tag with the provided tagname is currently visible (shown). See tag
show tagshownp "tag
tandemp
Takes: none
Returns: boolean
Returns true if the calling turtle is tandeming another turtle. See tandem
show tandemp
targetp
Takes: none
Returns: boolean
Returns true if the calling turtle is targeting another turtle. See target
show targetp
tetherp
Takes: none
Returns: boolean
Returns true if the calling turtle is tethering. See tether
show tetherp
trackp
Takes: none
Returns: boolean
Returns true if the calling turtle’s track is being generated / recorded. See track, notrack.
show trackp
trackrenderp
Takes: none
Returns: boolean
Returns true if the calling turtle’s track is being rendered.
show trackrenderp
transcriptp
Takes: none
Returns: boolean
Returns true if transcript is enabled. See transcript, notranscript
true
Takes: none
Returns: true
Returns true. See false
show true
turtlep
Takes: turtle (word)
Returns: boolean
Returns true if the named turtle exists.
show turtlep "myrtle
userp
Takes: name (word)
Returns: boolean
Returns true if the provided name is a currently defined user.
show userp "Bonnie
true
viewturtlep
Takes: name (word)
Returns: boolean
Returns true if the named turtle is currently the view turtle.
show viewturtlep "snappy
true
visiblep
Takes: none
Returns: boolean
Returns true if the calling turtle is in view of the current view turtle
show visiblep
vowelp
Takes: character
Returns: boolean
Returns true if the provided character is a vowel (a e i o u or y)
show vowelp "u
windowp
Takes: none
Returns: boolean
Returns true if the turtle is currently in ‘window’ mode. See window
show windowp
withinp
Takes: number or list | number or list | number of list
Returns: 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
wrapp
Takes: none
Returns: boolean
Returns true if the turtle is currently in ‘wrap’ mode. See wrap, window, fence
show wrapp
wordp
Takes: none
Returns: boolean
Returns true if the input is a word.
show wordp "word