Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

Booleans

< >
Example from 2 languages: Go, Wa-lang
c := true
Example from 1 languages: JSON
false
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: Chapel
bool true false
Example from 1 languages: Gleam
let is_awesome = True
Example from 1 languages: MoonBit
let a = 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, Go, JSON, TypeScript, SQL, C#, R, Rust, Swift, Scala, Lua, Kotlin, CoffeeScript, Elixir, Julia, Dart, COBOL, Solidity, Visual Basic, Nim, Pascal, Ada, PostgreSQL, Crystal, MySQL, Reason, GraphQL, Chapel, Groovy, F#, OCaml, Gleam, HCL, Liquid, Visual Basic .NET, Protocol Buffers, MongoDB, ANTLR, F*, ABAP, C3, EDN, MoonScript, Wa-lang, NetLogo, Janet, PL/SQL, CouchDB, Nearley, SPARQL, UML, MoonBit, Modula-2, progsbase, C2, Twig, Click, idyll, TLA+, Slope, eC, Simula, wisp, Transact-SQL, Modula-3, ArkScript, Oz, XL, MariaDB, Isabelle, Lasso, Angelscript, spry, BlitzBasic, Classroom Object Oriented Language, Concise Encoding, Ligo, Apex, Jule, Augmented Backus-Naur Form, JSON Lines, Jison Lex, Bluespec, Sophia, Spin, Cell, Ezhil, Jupyter Notebook, Action!, S-algol, Uniform eXchange Format, Aardvark, JS++, Speedie, carth, Bel, Amazon Redshift, PROMAL, PowerQuery M, C/AL, blockml, Ion, Ren, Arden syntax, fizz, BALGOL, Caché Basic, PLZ, bag-format, Freefem, llhd, Mscgen, McKeeman Form, opengraph, Friendly Enough Expression Language

*

Languages without Booleans include Markdown, Ini, SQLite, Lil, Veryl

*

View all concepts with or missing a hasBooleans measurement

*

Read more about Booleans on the web: 1.

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements