Bool | Haskell, Perl6, Pliant |
bool | C#, C++, C99, F#, Go, OCaml, PHP, Python, SML, YAML |
Boolean | Ada, Lua, Pascal, Smalltalk, Visual Basic |
boolean | CoffeeScript, Common Lisp, Java, JavaScript, Maple, PHP, YCP |
BOOLEAN | Eiffel |
logic! | Rebol |
logical | Matlab |
false | Ada, BCPL, Beta, BourneShell, C#, C++, C99, CoffeeScript, E, F#, FL, Forth, Go, Io, Java, JavaScript, Logo, Lua, Maple, Matlab, OCaml, Oz, Pascal, PHP, Pliant, PostScript, Rebol, Ruby, Smalltalk, SML, Tcl, YAML, YCP |
False | Eiffel, Haskell, Mathematica, merd, Python, Visual Basic |
FALSE | Modula-3, SQL92 |
false() | XPath |
#f | Dylan, Scheme |
n | YAML |
nil | Common Lisp, Emacs Lisp, Io, Lua, Ruby |
no | CoffeeScript, Tcl, YAML |
No | Prolog |
none | Rebol |
None | Python |
null | CoffeeScript, JavaScript |
NULL | C, C++, C99, PHP |
off | CoffeeScript, Tcl, YAML |
undef | Perl, Perl6 |
undefined | CoffeeScript, JavaScript |
fail | Prolog |
FAIL | Maple |
array containing at least one false value | Matlab |
exit status different from 0 | BourneShell |
0(1) | Awk, B, C, C++, C99, Classic REXX, CoffeeScript, Forth, JavaScript, Matlab, MUMPS, Perl, Perl6, PHP, Pike, Python, Tcl, Visual Basic, XPath, Yorick |
0.0 | Matlab, Perl, PHP |
NaN | CoffeeScript, JavaScript, XPath |
"" | Awk, CoffeeScript, JavaScript, Perl, Perl6, PHP, Python, XPath |
"0" | Awk, Perl, Perl6, PHP |
'' | CoffeeScript, Matlab, Perl |
'\0' | C, C++, C99 |
() | Perl, Perl6, Python |
[] | Matlab, Python |
{} | Matlab, Python |
array() | PHP |
TRUE | Modula-3, SQL92 |
True | Eiffel, Haskell, Mathematica, merd, Python, Visual Basic |
true | Ada, BCPL, Beta, BourneShell, C#, C++, CoffeeScript, E, F#, FL, Forth, Go, Io, Java, JavaScript, Logo, Maple, OCaml, Oz, Pascal, PHP, Pliant, PostScript, Prolog, Rebol, Ruby, Smalltalk, SML, Tcl, YAML, YCP |
true() | XPath |
t | Common Lisp, Emacs Lisp |
#t | Dylan, Scheme |
y | YAML |
yes | CoffeeScript, Tcl, YAML |
Yes | Prolog |
on | CoffeeScript, Tcl, YAML |
exit status 0 | BourneShell |
anything not false | Awk, B, C, C++, Common Lisp, Dylan, Emacs Lisp, Matlab, MUMPS, Perl, Perl6, Pike, Python, Rebol, Ruby, Scheme, XPath, Yorick |
1 | Classic REXX, MUMPS |
non zero number | Tcl |
non-zero-numbers | Visual Basic |
-1 | Forth |
! | Awk, B, C, C#, C++, CoffeeScript, E, Go, Java, JavaScript, Mathematica, Perl, Perl6, PHP, Pike, Ruby, Tcl, Vimscript, YCP, Yorick |
not(2) | Ada, Beta, CoffeeScript, Common Lisp, Eiffel, Emacs Lisp, F#, Haskell, Io, 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 |
=0 | Forth |
short circuit
|| / && | Awk, C, C#, C++, CoffeeScript, E, F#, Go, Haskell, Java, JavaScript, Mathematica, Matlab, merd, OCaml, Perl, Perl6, PHP, Pike, Ruby, Tcl, Vimscript, YCP, Yorick |
| / & | B, BCPL, Dylan |
or / and | CoffeeScript, Common Lisp, Emacs Lisp, Io, Logo, Lua, Modula-2, Perl, Perl6, PHP, Pliant, Python, Ruby, Scheme, Smalltalk |
OR / AND | Modula-3 |
or / &(3) | Modula-2 |
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, Maple, Pascal, PostScript, Rebol, SML, XPath |
Or / And(4) | Oz, Visual Basic |
\/ / /\(5) | BCPL |
?| / | Perl6 |