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