I want to put the equation number at the right for the following code:
\[
\log{y_{i}} =
\left\{
\begin{array}{l l}
y_{2i}^{*} & \quad \textrm{if $y_{2i}^{*}\succ0$}\\
0 & \quad \textrm{otherwise}
\end{array}
\right.
\]
Any idea?

arraynumbered, or the equation as a whole? – Werner Oct 25 '13 at 18:43