Ternary operators
=================
```Example from 1 languages: JavaScript
let i = true ? 1 : 0
```
```Example from 1 languages: C
#include <stdio.h>
int main(void) { printf("%d", 1 ? 1 : 0); }
```
```Example from 1 languages: Python
print(1 if 1 else 0)
```
```Example from 1 languages: PHP
<?php echo 1 ? 1 : 0;
```
```Example from 1 languages: Kotlin
// Since if statements are expressions
println(if (true) true else false)
```
```Example from 1 languages: C3
int foo = x ? 1 : 0;
```
```Example from 1 languages: Wax
(set y (? (= x 0) 1 2))
```
```Example from 1 languages: Speedie
while
printline (1,0)(random[]>0.5)
```
*
Languages *with* Ternary operators include JavaScript, C, Python, PHP, Kotlin, C3, Wax, Speedie
*
Languages *without* Ternary operators include HTML, CSS, XML, JSON, Lil, Scroll, Jule, Explorer
*
View all concepts with or missing a *hasTernaryOperators* measurement
http://pldb.info/../lists/explorer.html#columns=rank~id~appeared~tags~creators~hasTernaryOperators&searchBuilder=%7B%22criteria%22%3A%5B%7B%22condition%22%3A%22null%22%2C%22data%22%3A%22hasTernaryOperators%22%2C%22origData%22%3A%22hasTernaryOperators%22%2C%22type%22%3A%22num%22%2C%22value%22%3A%5B%5D%7D%5D%2C%22logic%22%3A%22AND%22%7D missing
http://pldb.info/../lists/explorer.html#columns=rank~id~appeared~tags~creators~hasTernaryOperators&searchBuilder=%7B%22criteria%22%3A%5B%7B%22condition%22%3A%22!null%22%2C%22data%22%3A%22hasTernaryOperators%22%2C%22origData%22%3A%22hasTernaryOperators%22%2C%22type%22%3A%22num%22%2C%22value%22%3A%5B%5D%7D%5D%2C%22logic%22%3A%22AND%22%7D with
*
Read more about Ternary operators on the web: 1.
https://en.wikipedia.org/wiki/Ternary_operation 1.
Built with Scroll v178.2.3