Open
Description
It would be good to add a gotcha on breaking from pipelines...
i.e. People expect this:
$found = $false
$list | ForEach-Object {
if ($_ -eq $searchFor) {
$found = $true
break
}
}
if ($found){'Woo'}else{'Boo'}
to work like this:
$found = $false
foreach {$item in $list} {
if ($item -eq $searchFor) {
$found = $true
break
}
}
if ($found){'Woo'}else{'Boo'}