
A have a repeater called "repeating_attacks" and inside my big giant sheetworker I need to pull a value from each line inside it, perform a calculation based on some stat values external to the repeater, and then apply the results to a different field back inside. (Basically determine which stat is used to determine the "to hit" value for the given attack, then find the "to hit" based on that stat, apply other potential bonuses, and update "top hit" for each attack.) To get started I'm trying to just build lists of the source and target column names to be able to feed into GetAttrs and SetAttrs. I'm using what seems to be a pretty common method to do this: const toHitValArray = []; const toHitStatArray = []; getSectionIDs('attacks', function (ids) { console.log('==== ids'); console.log(ids); if (ids.length > 0) { ids.forEach(id => toHitValArray.push( `repeating_attacks_${id}_tohit` )); ids.forEach(id => toHitStatArray.push( `repeating_attacks_${id}_tohit_bc` )); } }); console.log('==== toHitValArray'); console.log(toHitValArray); console.log('==== toHitStatArray'); console.log(toHitStatArray); With one item in the repeaer, these results show up in the console: ==== toHitValArray eval" class="frame-link-source" draggable="false"> sheetsandboxworker.js :183:11 Array [ ] eval" class="frame-link-source" draggable="false"> sheetsandboxworker.js :184:11 ==== toHitStatArray eval" class="frame-link-source" draggable="false"> sheetsandboxworker.js :185:11 Array [ ] eval" class="frame-link-source" draggable="false"> sheetsandboxworker.js :186:11 ==== ids eval" class="frame-link-source" draggable="false"> sheetsandboxworker.js :171:12 Array [ "-m8liuhc2y7xryhmnzuz" ] So the console.log statements to display the contents of the source/target arrays are firing before the ID fetch and its corresponding console logging. Do I need to find a way to somehow force GetSectionIDs to finish before proceeding? (Pretty sure I've seen examples very much like this while scouring the forums - I'm provide an example but the search function seems to be broken for me at the moment.)