Report TRUE
if agents
is non empty, report FALSE
otherwise.
NLany(agents) # S4 method for matrix NLany(agents)
agents  Matrix (


Logical. TRUE
if there is at least one patch or one turtle in the
agents
, FALSE
otherwise.
Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and ComputerBased Modeling, Northwestern University. Evanston, IL.
# Patches w1 < createWorld(minPxcor = 0, maxPxcor = 4, minPycor = 0, maxPycor = 4) p1 < noPatches() p2 < patch(w1, 0, 0) NLany(p1)#> [1] FALSENLany(p2)#> [1] TRUE#> [1] TRUENLany(t2)#> [1] FALSE