All the loop constructs have a name, like "foreach loop" or "do loop" etc. How should we refer to the following construct:
$myVar | % {
......
......
}
Please, do address this query for its i
All the loop constructs have a name, like "foreach loop" or "do loop" etc. How should we refer to the following construct:
$myVar | % {
......
......
}
Please, do address this query for its i
'%' 是 Foreach-Object cmdlet 的别名,基本上它是一个循环,但更多的是为管道设计的 foreach 循环。有关详细信息,请参阅about_Foreach主题。