let i = true ? 1 : 0
#include <stdio.h>
int main(void) { printf("%d", 1 ? 1 : 0); }
<?php echo 1 ? 1 : 0;
// Since if statements are expressions
println(if (true) true else false)
int foo = x ? 1 : 0;
Languages with Ternary operators include JavaScript, C, Python, C++, PHP, Kotlin, TypeScript, Objective-C, Cython, C3, Tick C, cooC, Real-Time Concurrent C, Static Typescript
Languages without Ternary operators include HTML, XML, JSON, CSS, JSON5, Ion, Jule, JSONiq, JSON with Comments, Superjson, Hocon, Scroll, Jsonnet, Explorer
Read more about Ternary operators on the web: 1.
HTML of this page generated by Features.ts