Boolean values: Difference between revisions

Line 433:
x = ISFALSE(1 = 1) ' returns 0
x = ISFALSE(1 = 0) ' returns -1</lang>
 
=={{header|PostScript}}==
 
Predefined constants are "
 
<lang>
true
false
</lang>
 
=={{header|PowerShell}}==
Line 445 ⟶ 454:
* any array with more than one item evaluates to '''true'''
* a reference to any object evaluates to '''true''', <code>$null</code> evaluates to '''false'''
 
=={{header|PureBasic}}==
PureBasic does not have a Boolean variable type. An integer type is typically used instead. Boolean values are only supported as part of a loop's condition (While/Wend, Repeat/Until) or in a conditional (If/Endif). In these cases if the result of a variable or a numeric expression is zero it is evaluated as False, otherwise it is evaluated as True. A string variable assigned a null string would be evaluated as False.
503

edits