Bool | Haskell, Perl6, Pliant |
bool | C#, C++, C99, OCaml, Python, YAML |
Boolean | Ada, Lua, Pascal, Smalltalk, Visual Basic |
boolean | Common Lisp, Java, Maple, YCP |
BOOLEAN | Eiffel |
logic! | Rebol |
logical | Matlab |
false | Ada, BCPL, Beta, BourneShell, C#, C++, C99, E, FL, Java, JavaScript, Logo, Lua, Maple, Matlab, OCaml, Oz, Pascal, PHP, Pliant, PostScript, Rebol, Ruby, Smalltalk, SML, Tcl, YAML, YCP |
False | Eiffel, Haskell, merd, Python, Visual Basic |
FALSE | Modula-3, SQL92 |
false() | XPath |
#f | Dylan, Scheme |
n | YAML |
nil | Common Lisp, Emacs Lisp, Lua, Lua, Ruby |
no | Tcl, YAML |
No | Prolog |
none | Rebol |
None | Python |
null | JavaScript |
NULL | C, C++, C99 |
off | Tcl, YAML |
undef | Perl, Perl6 |
undefined | JavaScript |
fail | Prolog |
FAIL | Maple |
array containing at least one false value | Matlab |
exit status different from 0 | BourneShell |
0 | Awk, B, C, C++, C99, Classic REXX, JavaScript, Matlab, MUMPS, Perl, Perl6, PHP, Pike, Python, Tcl, Visual Basic, XPath |
0.0 | Matlab |
NaN | JavaScript, XPath |
"" | Awk, JavaScript, Perl, Perl6, PHP, Python, XPath |
"0" | Awk, Perl, Perl6 |
'' | Matlab |
'' | C, C++, C99 |
() | Perl, Perl6, Python |
[] | Matlab, Python |
{} | Matlab, Python |
TRUE | Modula-3, SQL92 |
True | Eiffel, Haskell, merd, Python, Visual Basic |
true | Ada, BCPL, Beta, BourneShell, C#, E, FL, Java, Logo, Maple, OCaml, Oz, Pascal, PHP, Pliant, PostScript, Prolog, Rebol, Smalltalk, SML, Tcl, YAML, YCP |
true() | XPath |
t | Common Lisp, Emacs Lisp |
#t | Dylan, Scheme |
y | YAML |
yes | Tcl, YAML |
Yes | Prolog |
on | Tcl, YAML |
exit status 0 | BourneShell |
anything not false | Awk, B, C, Common Lisp, Dylan, Emacs Lisp, Matlab, MUMPS, Perl, Perl6, Pike, Python, Rebol, Scheme, XPath |
1 | Classic REXX, MUMPS |
non zero number | Tcl |
non-zero-numbers | Visual Basic |
! | Awk, B, C, C#, C++, E, Java, JavaScript, Perl, Perl6, PHP, Pike, Ruby, Tcl, YCP |
not | Ada, Beta, Common Lisp, Eiffel, Emacs Lisp, Forth, Haskell, Logo, Lua, Maple, merd, OCaml, Pascal, Perl, Perl6, Pliant, PostScript, Prolog, Python, Rebol, Ruby, Scheme, Smalltalk, SML, XPath |
Not | Oz, Visual Basic |
NOT | Modula-3 |
~ | BCPL, Dylan, Matlab, PL/I |
^ | PL/I |
' | MUMPS |
\ | Classic REXX |
short circuit
|| / && | Awk, C, C#, C++, E, Haskell, Java, JavaScript, Matlab, merd, OCaml, Perl, Perl6, PHP, Pike, Ruby, Tcl, YCP |
| / & | B, BCPL, Dylan |
or / and | Common Lisp, Emacs Lisp, Logo, Lua, Modula-2, Perl, Perl6, PHP, Pliant, Python, Ruby, Scheme, Smalltalk |
OR / AND | Modula-3 |
or / & | OCaml |
any / all | Rebol |
orelse / andalso | SML |
orelse / andthen | Oz |
or else / and then | Ada, Eiffel |
; / , | Prolog |
& / ! | MUMPS |
non short circuit (always evaluates both arguments)
| / & | C#, Classic REXX, Java, Matlab, Smalltalk |
or / and | Ada, Beta, Eiffel, Forth, Maple, Pascal, PostScript, Rebol, SML, XPath |
Or / And | Oz, Visual Basic |
\/ / /\ | BCPL |
?| / | Perl6 |