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

*

View all concepts with or missing a hasBooleans measurement

*

Read more about Booleans on the web: 1.

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