[{"data":1,"prerenderedAt":241},["ShallowReactive",2],{"/dict/ask":3,"/dict/ask-surround":230},{"id":4,"title":5,"body":6,"description":196,"extension":197,"meta":198,"navigation":217,"path":226,"seo":227,"stem":228,"__hash__":229},"content/dict/ask.md","NetLogo Dictionary: ask",{"type":7,"value":8,"toc":185},"minimark",[9],[10,11,16,35,76,84,175,178],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","ask","region",[17,18,20],"h3",{"id":19},"ask10",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#ask","doc-noteref","Reference to ask","\nask\n",[28,29,34],"span",{"className":30,"role":32,"ariaLabel":33},[31],"since","note","Since version","\n1.0\n",[36,37,41],"h4",{"id":38,"className":39},"ask-agentset-commandsask-agent-commands",[40],"section-heading",[21,42,46,64],{"className":43,"href":45},[44],"section-anchor","#ask-agentset-commandsask-agent-commands",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54,58,59],"p",{},"ask ",[55,56,57],"em",{},"agentset"," ",[28,60,61],{},[55,62,63],{},"commands",[28,65,67],{"className":66},[49],[51,68,53,69,58,72],{},[55,70,71],{},"agent",[28,73,74],{},[55,75,63],{},[51,77,78,79,83],{},"The specified agent or agentset runs the given commands. Because\nagentset members are always read in a random order, when ask is\nused with an agentset each agent will take its turn in a random\norder. See ",[21,80,82],{"href":81},"/programming#agentsets","Agentsets","for more information.",[85,86,87],"pre",{},[88,89,90,58,95,100,101,58,105,110,111,114,115,120,122,58,125,100,129,58,133,58,137,110,142,114,144,148,150,58,153,58,157,100,161,58,165,110,169,114,171],"code",{},[28,91,14],{"className":92},[93,94],"token","command",[28,96,99],{"className":97},[93,98],"reporter","turtles"," [ ",[28,102,104],{"className":103},[93,94],"fd",[28,106,109],{"className":107},[93,108],"number","1"," ]",[112,113],"br",{},"  ",[28,116,119],{"className":117},[93,118],"comment",";; all turtles move forward one step",[112,121],{},[28,123,14],{"className":124},[93,94],[28,126,128],{"className":127},[93,98],"patches",[28,130,132],{"className":131},[93,94],"set",[28,134,136],{"className":135},[93,98],"pcolor",[28,138,141],{"className":139},[93,140],"constant","red",[112,143],{},[28,145,147],{"className":146},[93,118],";; all patches turn red",[112,149],{},[28,151,14],{"className":152},[93,94],[28,154,156],{"className":155},[93,98],"turtle",[28,158,160],{"className":159},[93,108],"4",[28,162,164],{"className":163},[93,94],"rt",[28,166,168],{"className":167},[93,108],"90",[112,170],{},[28,172,174],{"className":173},[93,118],";; only the turtle with id 4 turns right",[51,176,177],{},"Note: only the observer can ask all turtles or all patches. This\nprevents you from inadvertently having all turtles ask all turtles\nor all patches ask all patches, which is a common mistake to make\nif you’re not careful about which agents will run the code you\nare writing.",[51,179,180,181,184],{},"Note: Only the agents that are in the agentset ",[55,182,183],{},"at the time the\nask begins"," run the commands.",{"title":186,"searchDepth":187,"depth":188,"links":189},"",5,3,[190],{"id":19,"depth":188,"text":191,"children":192},"\nask\n\n1.0\n",[193],{"id":38,"depth":194,"text":195},4,"ask agentset commandsask agent commands","Documentation for the ask primitive.","md",{"source":199,"metadataOutputPath":200,"projectConfig":201,"language":209,"inheritFrom":218,"output":217,"version":202,"layout":219,"dictionaryDisplayName":220,"dictionaryHomeDirectory":221,"indexFileURI":222,"currentItemId":14,"currentItemLabel":14,"primRoot":223,"icon":224,"assetsRoot":225},"autogen/dict/ask.md","content/dict/ask.metadata.yaml",{"version":202,"projectRoot":203,"scanRoot":204,"outputRoot":205,"defaults":206,"engine":212,"partials":213,"dedupeIdenticalDiskWrites":217},"7.0.4",".","autogen","content",{"inheritFrom":207,"language":209,"output":210,"extension":197,"title":211,"version":202},[208],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":214,"extensions":215},[203],[216,197],"mustache",true,[208],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/ask",{"title":5,"description":196},"dict/ask","QP3NejwAIyBrxHbH4o2cPhLyEKvLwVHkZi26hAeVWVs",[231,236],{"title":232,"path":233,"stem":234,"description":235},"NetLogo Dictionary: asin","/dict/asin","dict/asin","Documentation for the asin primitive.",{"title":237,"path":238,"stem":239,"description":240},"NetLogo Dictionary: ask-concurrent","/dict/ask-concurrent","dict/ask-concurrent","Documentation for the ask-concurrent primitive.",1777657797710]