# If $value equals 1 write True, else write False
if($value -eq 1){
Write-Host "True"
} else {
Write-Host "False"
}
You can use the If statement to run code blocks if a specified conditional test evaluates to true.
# If $value equals 1 write True, else write False
if($value -eq 1){
Write-Host "True"
} else {
Write-Host "False"
}
Details