Jump to content

Boolean values: Difference between revisions

m
(added PowerShell)
m (→‎{{header|PowerShell}}: minor rewording)
Line 186:
<lang powershell>$true
$false</lang>
However, nearly everything can be converted to a boolean value, as detailed in the following list:
* any non-zero number evaluates to '''true''', zero evaluates to '''false'''
* any non-empty string evaluates to '''true''', an empty string evaluates to '''false'''
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.