If/Else Statement

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