How can I place the three conditions aligned within the curly brackets, sum and square brackets?
I want this:
But I get this:
\documentclass{article}
\usepackage{amssymb,amsmath}
\begin{document}
\begin{equation}
\max_{r_1 < r_j < r_2 } \begin{cases} \sum_{r=1}^{r_j-r_1} \Bigg[ 1 & if \quad xyz\\
-1 & if \quad abz\\
0 & if \quad blah \Bigg] - somethinig \end{cases}
\end{equation}
\end{document}
What should I use instead of \Bigg[
and \Bigg]
?
Am I using the wrong packages and/or what is wrong with my syntax?