以下のような関数から次のループを解除したいと思います。
Function test {
$i++
IF ($i -eq 10) {continue}
}
$Computers = "13","12","11","10","9","8","7","6","5","4","3","2","1"
ForEach ($Computer in $Computers) {
Test
write-host "Fail"
}
以下のような関数から次のループを解除したいと思います。
Function test {
$i++
IF ($i -eq 10) {continue}
}
$Computers = "13","12","11","10","9","8","7","6","5","4","3","2","1"
ForEach ($Computer in $Computers) {
Test
write-host "Fail"
}