Measures Concepts
GitHub icon

Booleans

Booleans - language feature

< >
false
Example from Go:
c := true
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 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 opengraph:
true false 1 0

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

Languages without Booleans include Markdown, SQLite, Ini, Marp, Mathpix Markdown

This question asks: Does the language have a type and syntax for booleans?

Read more about Booleans on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Day 605 feedback@pldb.io Logout