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