// x will be 1 if condition is a true value, 2 otherwise. var/x = condition ? 1 : 2