If want to align the code such that all the `if ...' part are also aligned. But I can't make it happen, because two of the three equations are in a cases environment and the other one isn't.
\begin{align}
g^B(x)&=
\begin{cases}
T & \text{if $x$ is $\tr$,} \\
F & \text{if $x$ is $\fa$.}
\end{cases}\\
g^\ell (x)&=
a \xor g^B(z) &\text{if $x = y\lef a \rig z$}\\
g^B(x)&=
\begin{cases}
T & \text{if $x$ is $\tr$,} \\
F & \text{if $x$ is $\fa$.}
\end{cases}
\end{align}


