Languages Features Calendar About Lists Add Language
GitHub icon



Conditionals are a language feature.

In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false.

Languages without Conditionals include HTML, XML, JSON

Languages with Conditionals include Java, JavaScript, C, Python, C++, PHP, Ruby, R, Go, Perl, C#, Scala, Swift, Rust, Haskell, Lua, Scheme, Objective-C, Erlang, Kotlin, Julia, Pascal, Ada, PowerShell, OCaml, Dart, Groovy, F#, CoffeeScript, Bash, Solidity, Crystal, Chapel, Verilog, Reason, Dylan, VHDL, Pug, HCL, AutoIt, Opa, F*, X10, ABAP, Maxima, Clean, Koka, Bicep, ATS, SystemVerilog, Twig, HOPE, Felix, Flow9, Angelscript, Apex, Ligo, PowerQuery M, Q#, Sophia, nimrod

Example from JavaScript:

if (true) console.log("hi!")

Example from Python:

if True: print("Hello world")

Article source

PLDB - Build the next great programming language 路 v2022 Docs Editor Acknowledgements Email GitHub