Need help creating loop

@shawn-johnson
Okay. Not sure how to push the values directly to the dropdown. The only way I can think of is to create an array and push the values from tierss to it with a loop. Then use the newArray options for the dropdown. Hope this helps. If not, then hope someone else can provide a better answer. Good luck.


 $w.onReady(function () { 
 
 let newArray = [];
 
 for (var i = 0; i < tierrs.length; i++) {
   newArray.push(
   {"label": "" + tierrs[l], "value": l.toString()}
   );
 }
 $w("#dropTier").options = newArray; 
})