[{"data":1,"prerenderedAt":364},["ShallowReactive",2],{"/dict/who":3,"/dict/who-surround":353},{"id":4,"title":5,"body":6,"description":320,"extension":321,"meta":322,"navigation":340,"path":349,"seo":350,"stem":351,"__hash__":352},"content/dict/who.md","NetLogo Dictionary: who",{"type":7,"value":8,"toc":311},"minimark",[9],[10,11,16,26,53,56,81,84,211,223,226,288],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","who","region",[17,18,19],"h3",{"id":14},[20,21,25],"a",{"href":22,"role":23,"ariaLabel":24},"#who","doc-noteref","Reference to who","\nwho\n",[27,28,32],"h4",{"id":29,"className":30},"who-1",[31],"section-heading",[20,33,37,45],{"className":34,"href":36},[35],"section-anchor","#who-1",[38,39,42],"span",{"className":40},[41],"prim_example",[43,44,14],"p",{},[46,47],"img",{"alt":48,"src":49,"width":50,"height":50,"style":51},"Turtle Command","/_content/images/turtle.png",16,{"aspectRatio":52},"56/56",[43,54,55],{},"This is a built-in turtle variable. It holds the turtle’s\n“who number” or ID number, an integer greater than or\nequal to zero. You cannot set this variable; a turtle’s who\nnumber never changes.",[43,57,58,59,71,72,80],{},"Who numbers start at 0. A dead turtle’s number will not be\nreassigned to a new turtle until you use the ",[60,61,63],"primitive",{"displayText":62,"permalink":62},"clear-turtles",[20,64,62],{"className":65,"dataDisplayText":62,"href":67,"rel":68,"target":70,"title":62},[66],"netlogo-wiki-link","/dictionary#clear-turtles",[69],"noopener","_self"," or ",[60,73,75],{"displayText":74,"permalink":74},"clear-all",[20,76,74],{"className":77,"dataDisplayText":74,"href":78,"rel":79,"target":70,"title":74},[66],"/dictionary#clear-all",[69]," commands, at which time who numbering\nstarts over again at 0.",[43,82,83],{},"Example:",[85,86,87],"pre",{},[88,89,90,96,97,101,102,106,107,106,111,96,115,106,119,106,123,128,129,132,137,139,143,145,106,149,154,156,157,106,161,106,164,106,168,172,174,175,106,179,106,182,185,186,174,188,106,191,106,194,198,199,201,205,207],"code",{},[38,91,95],{"className":92},[93,94],"token","command","show"," [",[38,98,14],{"className":99},[93,100],"reporter","] ",[38,103,105],{"className":104},[93,100],"of"," ",[38,108,110],{"className":109},[93,100],"turtles",[38,112,114],{"className":113},[93,100],"with",[38,116,118],{"className":117},[93,100],"color",[38,120,122],{"className":121},[93,100],"=",[38,124,127],{"className":125},[93,126],"constant","red","]",[130,131],"br",{},[38,133,136],{"className":134},[93,135],"comment",";; prints a list of the who numbers of all red turtles",[130,138],{},[38,140,142],{"className":141},[93,135],";; in the Command Center, in random order",[130,144],{},[38,146,148],{"className":147},[93,94],"crt",[38,150,153],{"className":151},[93,152],"number","100",[130,155],{},"  [ ",[38,158,160],{"className":159},[93,94],"ifelse",[38,162,14],{"className":163},[93,100],[38,165,167],{"className":166},[93,100],"\u003C",[38,169,171],{"className":170},[93,152],"50",[130,173],{},"      [ ",[38,176,178],{"className":177},[93,94],"set",[38,180,118],{"className":181},[93,100],[38,183,127],{"className":184},[93,126]," ]",[130,187],{},[38,189,178],{"className":190},[93,94],[38,192,118],{"className":193},[93,100],[38,195,197],{"className":196},[93,126],"blue"," ] ]",[130,200],{},[38,202,204],{"className":203},[93,135],";; turtles 0 through 49 are red, turtles 50",[130,206],{},[38,208,210],{"className":209},[93,135],";; through 99 are blue",[43,212,213,214,222],{},"You can use the turtle reporter to retrieve a turtle with a given\nwho number. See also ",[60,215,217],{"displayText":216,"permalink":216},"turtle",[20,218,216],{"className":219,"dataDisplayText":216,"href":220,"rel":221,"target":70,"title":216},[66],"/dictionary#turtle",[69],".",[43,224,225],{},"Note that who numbers aren’t breed-specific. No two turtles can\nhave the same who number, even if they are different breeds:",[85,227,228],{},[88,229,230,233,235,106,240,244,246,106,250,253,255,106,259,262,263,106,267,185,270,272,276,278,282,284],{},[38,231,62],{"className":232},[93,94],[130,234],{},[38,236,239],{"className":237},[93,238],"variable","create-frogs",[38,241,243],{"className":242},[93,152],"1",[130,245],{},[38,247,249],{"className":248},[93,238],"create-mice",[38,251,243],{"className":252},[93,152],[130,254],{},[38,256,258],{"className":257},[93,94],"ask",[38,260,110],{"className":261},[93,100]," [ ",[38,264,266],{"className":265},[93,94],"print",[38,268,14],{"className":269},[93,100],[130,271],{},[38,273,275],{"className":274},[93,135],";; prints (in some random order):",[130,277],{},[38,279,281],{"className":280},[93,135],";; (frog 0): 0",[130,283],{},[38,285,287],{"className":286},[93,135],";; (mouse 1): 1",[43,289,290,291,300,301,310],{},"Even though we only have one mouse, it is ",[88,292,293,106,297],{},[38,294,296],{"className":295},[93,238],"mouse",[38,298,243],{"className":299},[93,152]," not ",[88,302,303,106,306],{},[38,304,296],{"className":305},[93,238],[38,307,309],{"className":308},[93,152],"0",", because the who number 0 was already taken by the\nfrog.",{"title":312,"searchDepth":313,"depth":314,"links":315},"",5,3,[316],{"id":14,"depth":314,"text":25,"children":317},[318],{"id":29,"depth":319,"text":14},4,"Documentation for the who primitive.","md",{"source":323,"metadataOutputPath":324,"projectConfig":325,"language":332,"inheritFrom":341,"output":340,"version":326,"layout":342,"dictionaryDisplayName":343,"dictionaryHomeDirectory":344,"indexFileURI":345,"currentItemId":14,"currentItemLabel":14,"primRoot":346,"icon":347,"assetsRoot":348},"autogen/dict/who.md","content/dict/who.metadata.yaml",{"version":326,"projectRoot":222,"scanRoot":327,"outputRoot":328,"defaults":329,"engine":335,"partials":336,"dedupeIdenticalDiskWrites":340},"7.0.4","autogen","content",{"inheritFrom":330,"language":332,"output":333,"extension":321,"title":334,"version":326},[331],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":337,"extensions":338},[222],[339,321],"mustache",true,[331],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/who",{"title":5,"description":320},"dict/who","km8ekmPHVZPP47ReMe_UNSIznjaRFOipt-7TZp-ZcyM",[354,359],{"title":355,"path":356,"stem":357,"description":358},"NetLogo Dictionary: while","/dict/while","dict/while","Documentation for the while primitive.",{"title":360,"path":361,"stem":362,"description":363},"NetLogo Dictionary: who-are-not","/dict/who-are-not","dict/who-are-not","Documentation for the who-are-not primitive.",1777657848460]