所以说我有2个数组。
$Letters = ("A","B","C")
$Numbers = ("1","2","3")
您将如何构建一个 foreach 循环以使其有效:
foreach ($letter in $letters) {set-something $number} where I could do a pair of values such that
A
设置为1
,B
设置为2
,C
设置为3
, 以此类推。这甚至叫什么?我以为它被称为嵌套循环,但搜索一遍,似乎这不是所谓的。非常感谢!