# If $value equals 1 write True, else write False
if($value -eq 1){
Write-Host "True"
} else {
Write-Host "False"
}
Related Posts
A Quick Lesson in Boolean
I often see scripts that are checking for True/False values...
Remove First Entry in Fixed Array
Here is a quick little trick for removing the first...