Top 1,000 Features Creators Events Podcasts Extensions Interviews Blog Explorer CSV

Booleans

< >
Example from 1 languages: JSON
false
Example from 1 languages: Go
c := true
Example from 1 languages: TypeScript
const result = true
Example from 1 languages: Lua
true false
Example from 1 languages: Nim
let res = true
Example from 1 languages: Slope
(define open? #t)
Example from 1 languages: Jule
true false
Example from 1 languages: Bel
; The symbol nil represents falsity as well as the empty list. ; The symbol t is the default representation for truth, but any object other than nil also counts as true.
Example from 1 languages: Ion
null.bool true false
Example from 1 languages: opengraph
true false 1 0
*

Languages with Booleans include JavaScript, C, Python, Java, Ruby, PHP, JSON, Go, TypeScript, SQL, C#, R, Rust, Swift, Scala, Lua, Kotlin, Elixir, CoffeeScript, Julia, Dart, COBOL, Visual Basic, Ada, Pascal, Solidity, Nim, Crystal, PostgreSQL, Reason, MySQL, GraphQL, Groovy, F#, OCaml, HCL, Liquid, Protocol Buffers, Visual Basic .NET, MongoDB, ANTLR, F*, ABAP, MoonScript, EDN, NetLogo, Janet, PL/SQL, C3, CouchDB, Nearley, SPARQL, UML, Modula-2, progsbase, Click, idyll, C2, Slope, Simula, Twig, wisp, Transact-SQL, eC, Modula-3, TLA, Oz, ArkScript, MariaDB, Isabelle, XL, Lasso, Angelscript, spry, BlitzBasic, Classroom Object Oriented Language, Ligo, Apex, Concise Encoding, Augmented Backus-Naur Form, Jule, Jison Lex, Bluespec, Spin, Sophia, JSON Lines, Cell, Ezhil, Jupyter Notebook, Action!, S-algol, Uniform eXchange Format, JS++, Speedie, Aardvark, carth, Bel, Amazon Redshift, PROMAL, C/AL, PowerQuery M, blockml, Ion, Ren, Arden syntax, fizz, BALGOL, Cach茅 Basic, bag-format, Freefem, llhd, Mscgen, PLZ, McKeeman Form, opengraph, Friendly Enough Expression Language

*

Languages without Booleans include Markdown, Ini, SQLite, Veryl

*

View all concepts with or missing a hasBooleans measurement

*

Read more about Booleans on the web: 1.

View source

- Build the next great programming language About Resources Acknowledgements Part of the World Wide Scroll