[{"data":1,"prerenderedAt":244},["ShallowReactive",2],{"/dict/every":3,"/dict/every-surround":233},{"id":4,"title":5,"body":6,"description":200,"extension":201,"meta":202,"navigation":220,"path":229,"seo":230,"stem":231,"__hash__":232},"content/dict/every.md","NetLogo Dictionary: every",{"type":7,"value":8,"toc":189},"minimark",[9],[10,11,16,35,64,70,73,105,173],"div",{"className":12,"id":14,"role":15},[13],"dict_entry","every","region",[17,18,20],"h3",{"id":19},"every10",[21,22,26,27],"a",{"href":23,"role":24,"ariaLabel":25},"#every","doc-noteref","Reference to every","\nevery\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},"every-number-commands",[40],"section-heading",[21,42,46],{"className":43,"href":45},[44],"section-anchor","#every-number--commands",[28,47,50],{"className":48},[49],"prim_example",[51,52,53,54,58,59],"p",{},"every ",[55,56,57],"em",{},"number"," ",[28,60,58,61],{},[55,62,63],{},"commands",[51,65,66,67,69],{},"Runs the given commands only if it’s been more than ",[55,68,57],{}," seconds since the last time this agent ran them in\nthis context. Otherwise, the commands are skipped.",[51,71,72],{},"By itself, every doesn’t make commands run over and over again.\nYou need to use every inside a loop, or inside a forever button, if\nyou want the commands run over and over again. every only limits\nhow often the commands run.",[51,74,75,76,104],{},"Above, “in this context” means during the same ask (or\nbutton press or command typed in the Command Center). So it\ndoesn’t make sense to write ",[77,78,79,58,85,90,91,58,94,90,98,103],"code",{},[28,80,84],{"className":81},[82,83],"token","command","ask",[28,86,89],{"className":87},[82,88],"reporter","turtles"," [ ",[28,92,14],{"className":93},[82,83],[28,95,97],{"className":96},[82,57],"0.5",[28,99,102],{"className":100},[82,101],"variable","..."," ]\n ]",", because when the ask finishes the turtles will all discard\ntheir timers for the “every”. The correct usage is shown\nbelow.",[106,107,108],"pre",{},[77,109,110,58,113,90,116,58,119,90,122,58,126,130,131,134,139,141,58,144,90,148,58,152,58,156,58,159,58,163,166,167,169],{},[28,111,14],{"className":112},[82,83],[28,114,97],{"className":115},[82,57],[28,117,84],{"className":118},[82,83],[28,120,89],{"className":121},[82,88],[28,123,125],{"className":124},[82,83],"fd",[28,127,129],{"className":128},[82,57],"1"," ] ]",[132,133],"br",{},[28,135,138],{"className":136},[82,137],"comment",";; twice a second the turtles will move forward 1",[132,140],{},[28,142,14],{"className":143},[82,83],[28,145,147],{"className":146},[82,57],"2",[28,149,151],{"className":150},[82,83],"set",[28,153,155],{"className":154},[82,101],"index",[28,157,155],{"className":158},[82,101],[28,160,162],{"className":161},[82,88],"+",[28,164,129],{"className":165},[82,57]," ]",[132,168],{},[28,170,172],{"className":171},[82,137],";; every 2 seconds index is incremented",[51,174,175,176,188],{},"See also ",[177,178,180],"primitive",{"displayText":179,"permalink":179},"wait",[21,181,179],{"className":182,"dataDisplayText":179,"href":184,"rel":185,"target":187,"title":179},[183],"netlogo-wiki-link","/dictionary#wait",[186],"noopener","_self",".",{"title":190,"searchDepth":191,"depth":192,"links":193},"",5,3,[194],{"id":19,"depth":192,"text":195,"children":196},"\nevery\n\n1.0\n",[197],{"id":38,"depth":198,"text":199},4,"every number  commands","Documentation for the every primitive.","md",{"source":203,"metadataOutputPath":204,"projectConfig":205,"language":212,"inheritFrom":221,"output":220,"version":206,"layout":222,"dictionaryDisplayName":223,"dictionaryHomeDirectory":224,"indexFileURI":225,"currentItemId":14,"currentItemLabel":14,"primRoot":226,"icon":227,"assetsRoot":228},"autogen/dict/every.md","content/dict/every.metadata.yaml",{"version":206,"projectRoot":188,"scanRoot":207,"outputRoot":208,"defaults":209,"engine":215,"partials":216,"dedupeIdenticalDiskWrites":220},"7.0.4","autogen","content",{"inheritFrom":210,"language":212,"output":213,"extension":201,"title":214,"version":206},[211],0,"en",false,"NetLogo User Manual","handlebars",{"directoryPaths":217,"extensions":218},[188],[219,201],"mustache",true,[211],"catalog","NetLogo Dictionary","/dictionary.html","/_index/dict.txt","dict","i-lucide-square-code","/home/runner/work/Helio/Helio/apps/docs/autogen","/dict/every",{"title":5,"description":200},"dict/every","-ZuTCb3quIxVEiGw378FMUfoVInxPU_S62HcJAKsstE",[234,239],{"title":235,"path":236,"stem":237,"description":238},"NetLogo Dictionary: error-message","/dict/error-message","dict/error-message","Documentation for the error-message primitive.",{"title":240,"path":241,"stem":242,"description":243},"NetLogo Dictionary: exp","/dict/exp","dict/exp","Documentation for the exp primitive.",1777657805265]