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

Booleans

< >
Example from 1 languages: Go
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: Gleam
let is_awesome = 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, COBOL, Dart, Solidity, Visual Basic, Nim, Pascal, Ada, PostgreSQL, Crystal, MySQL, Reason, GraphQL, Groovy, F#, OCaml, Gleam, HCL, Liquid, Visual Basic .NET, Protocol Buffers, MongoDB, ANTLR, F*, ABAP, C3, MoonScript, EDN, NetLogo, Janet, PL/SQL, CouchDB, Nearley, SPARQL, UML, Modula-2, progsbase, C2, Click, idyll, TLA+, Slope, Twig, Simula, wisp, eC, 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, JS++, Speedie, Aardvark, 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.

View source
- Build the next great programming language Add About Search Keywords Livestreams Labs Resources Acknowledgements Part of the World Wide Scroll