[{"data":1,"prerenderedAt":246},["ShallowReactive",2],{"/ls/ask":3,"/ls/ask-surround":236},{"id":4,"title":5,"body":6,"description":203,"extension":204,"meta":205,"navigation":222,"path":232,"seo":233,"stem":234,"__hash__":235},"content/ls/ask.md","LevelSpace Extension Dictionary: ask",{"type":7,"value":8,"toc":192},"minimark",[9],[10,11,15,16,15,26,54,58,84,87,104,107,185],"div",{"className":12,"id":14},[13],"dict_entry","ask","\n  ",[17,18,20,21,15],"h3",{"id":19},"lsask","\n    ",[22,23,25],"a",{"href":24},"#ask","ls:ask",[27,28,32],"h4",{"id":29,"className":30},"lsask-model-or-list-of-models-command-argument",[31],"section-heading",[22,33,20,37,15],{"className":34,"href":36},[35],"section-anchor","#----lsask-model-or-list-of-models-command-argument--",[38,39,42,43,47,48,47,51],"span",{"className":40},[41],"prim_example","ls:ask ",[44,45,46],"i",{},"model-or-list-of-models"," ",[44,49,50],{},"command",[44,52,53],{},"argument",[55,56,57],"p",{},"Ask the given child model or list of child models to run the given command. This is the primary of doing things with child models. For example:",[59,60,61],"pre",{},[62,63,64,47,69,73,74,47,78,83],"code",{},[38,65,25],{"className":66},[67,68],"token","variable",[38,70,72],{"className":71},[67,68],"model-id"," [ ",[38,75,77],{"className":76},[67,50],"create-turtles",[38,79,82],{"className":80},[67,81],"number","5"," ]",[55,85,86],{},"You can also ask a list of models to all do the same thing:",[59,88,89],{},[62,90,91,47,94,73,98,47,101,83],{},[38,92,25],{"className":93},[67,68],[38,95,97],{"className":96},[67,68],"ls:models",[38,99,77],{"className":100},[67,50],[38,102,82],{"className":103},[67,81],[55,105,106],{},"You may supply the command with arguments, just like you would with anonymous commands:",[59,108,109],{},[62,110,111,47,115,47,119,123,126,47,129,47,133,136,138,139,47,142,145,146,47,150,154,155,47,160,47,163,47,167,73,170,47,174,177,178,47,181,184],{},[38,112,114],{"className":113},[67,50],"let",[38,116,118],{"className":117},[67,68],"turtle-id",[38,120,122],{"className":121},[67,81],"0",[124,125],"br",{},[38,127,114],{"className":128},[67,50],[38,130,132],{"className":131},[67,68],"speed",[38,134,82],{"className":135},[67,81],[124,137],{},"(",[38,140,25],{"className":141},[67,68],[38,143,72],{"className":144},[67,68]," [ [",[38,147,149],{"className":148},[67,68],"t",[38,151,153],{"className":152},[67,68],"s","] ",[38,156,159],{"className":157},[67,158],"reporter","->",[38,161,14],{"className":162},[67,50],[38,164,166],{"className":165},[67,158],"turtle",[38,168,149],{"className":169},[67,68],[38,171,173],{"className":172},[67,50],"fd",[38,175,153],{"className":176},[67,68]," ] ] ",[38,179,118],{"className":180},[67,68],[38,182,132],{"className":183},[67,68],")",[55,186,187,188,191],{},"Note that the commands cannot access variables in the parent model directly. You must either pass information in through arguments or using ",[62,189,190],{},"ls:let",".",{"title":193,"searchDepth":194,"depth":195,"links":196},"",5,3,[197],{"id":19,"depth":195,"text":198,"children":199},"\n    ls:ask\n  ",[200],{"id":29,"depth":201,"text":202},4,"\n    ls:ask model-or-list-of-models command argument\n  ","Documentation for the ask primitive.","md",{"source":206,"metadataOutputPath":207,"projectConfig":208,"language":215,"inheritFrom":223,"output":222,"version":209,"layout":224,"dictionaryDisplayName":225,"dictionaryHomeDirectory":226,"indexFileURI":227,"currentItemId":14,"currentItemLabel":25,"primRoot":228,"icon":229,"extensionName":230,"assetsRoot":210},"../../external/extensions/ls/ls/ask.md","content/ls/ask.metadata.yaml",{"version":209,"projectRoot":191,"scanRoot":210,"outputRoot":211,"defaults":212,"engine":218,"partials":219,"dedupeIdenticalDiskWrites":222},"7.0.4","/home/runner/work/Helio/Helio/external/extensions/ls","content",{"inheritFrom":213,"language":215,"output":216,"extension":204,"title":217,"version":209},[214],0,"en",false,"NetLogo User Manual","mustache",{"directoryPaths":220,"extensions":221},[191],[218,204],true,[214],"catalog","LevelSpace Extension Dictionary","/ls.html","/_index/extensions/ls.txt","ls","i-si-flow-parallel-duotone",{"shortName":228,"fullName":231},"LevelSpace","/ls/ask",{"title":5,"description":203},"ls/ask","OvYYHAB6egNxAFJYthmateFGTQC8ENOgPkFU5rwbrgc",[237,241],{"title":238,"path":239,"stem":228,"children":-1,"description":240},"LevelSpace Extension","/ls","Documentation for the LevelSpace extension.",{"title":242,"path":243,"stem":244,"description":245,"children":-1},"LevelSpace Extension Dictionary: assign","/ls/assign","ls/assign","Documentation for the assign primitive.",1777657771553]