Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

For In loop to iterate two arrays simultaneously

$
0
0
Is there a way to iterate two arrays with in a For...In loop as mentioned below?
Tried different syntaxes, but nothing works...

Local $aArray[2]
$aArray[0] = "aaa"
$aArray[1] = "bbb"

Local $bArray[2]
$bArray[0] = "ccc"
$bArray[1] = "ddd"

For [ $element1 $element2 ] In $aArray $bArray
  ConsoleWrite($element1 & $element2)
Next

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>