To get a case statement like:
type
$$ x_\lambda = \begin{cases} x & \text{if $\lambda$ is an eigenvalue;}\\ -x & \text{if $-\lambda$ is an eigenvalue;}\\ 0 & \text{otherwise.} \end{cases} $$