Chapter4/4.1_Syntax/foreach/forach文でif文を使う.ps1
$letters = "a","b","c","d" foreach ($letter in $letters) { if ($letter -eq "a"){ Write-Host "I'm $letter" } } |
$letters = "a","b","c","d" foreach ($letter in $letters) { if ($letter -eq "a"){ Write-Host "I'm $letter" } } |