PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Booleans

Booleans

Booleans are a feature.

In computer science, the Boolean data type is a data type that has one of two possible values (usually denoted true and false), intended to represent the two truth values of logic and Boolean algebra.


Languages without Booleans include Markdown, SQLite, Ini

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

Example from JSON:
false
Example from Go:
c := true
Example from TypeScript:
const result = true
Example from Nim:
let res = true
Example from Ion:
null.bool true false
Example from Slope:
(define open? #t)
Example from Jule:
true false
Example from opengraph:
true false 1 0
assignment-feature.html 路 booleans-feature.html 路 comment-feature.html

View source

PLDB - Build the next great programming language 路 v2022 Day 33 Docs Build Acknowledgements Traffic Today Traffic Trends Mirrors GitHub feedback@pldb.com