the below is the code ,in which I am comparing values.
$b=100
$c=100,200,300
foreach ($vvv in $c){
if($vvv -eq $b)
{
Write-Host $vvv
}
Write-Host $vvv "value"
}
Result the output for the above code is
100
100 value
200 value
300 value
but the requirement here is I don't want to use the else loop here ,and I need the value which is not entering to the if loop
The output I need is
200
300