I want to know how can I write a lopp in order to put some graphs on my document with a different caption. I have n graphs with a variable name, i.e. "activos_t" with the label "Activos Totales" & "pasivos_t" with the label "Pasivos Totales". I want the caption to be different for each variable name contained in the following loop
\foreach \w in {activos_t,pasivos_t}{
\begin{figure}[H]
\centering
\caption{"label"}
\label{fig:Figura }
\includegraphics[height=6cm]{C:/Users/G15185/Desktop/ProyectoLATEXentregable/\w.png}
\end{figure}
}
Does anybody know how can I use an "if else" statement or any other condition to achieve that?

