PLDB
Languages Features Calendar About Lists Add Language
GitHub icon

Ternary operators

Ternary operators

Ternary operators are a language feature.

In computer science, a ternary operator is an operator that takes three arguments.

Languages with Ternary operators include JavaScript

Example from JavaScript:

let i = true ? 1 : 0

Article source

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