Ternary

var = expr ? 1 : 0; #1 if expr is true, 0 otherwise

Last updated