$x = $y ? <<A : <<B;
a
A
b
B
