Ternary Operator — ( ? : )
condition ? s_exp : s_exp
conditionAny Gamma or Lisp expression.
s_expAny Gamma or Lisp expression.
The first s_exp if the
condition is true, otherwise the second
s_exp.
Gamma>a = t ? 2 : 8;2Gamma>a;2Gamma>b = (a == 7) ? 2 : 8;8Gamma>b;8Gamma>