2019-09-01 Powershellで複数条件をすっきり書く if (@("りんご", "いちご", "トマト") -contains "トマト") { Write-Output "赤" }else{ Write-Output "ちがいまんな" }