0 / 60 seg.

What is the ternary operator equivalent to this code snippet?

if(x)
    y=a;
else
    y=b;