\providecommand\rankingquestion[1]{ \textbf{#1} } \providecommand\rankingbottles[1]{ \setcounter{bottlecnt}{0} \setcounter{bottlemax}{#1} \stepcounter{bottlemax} % There is no <= in forloop \forloop{bottlecnt}{1}{\value{bottlecnt} < \value{bottlemax}}{ \includegraphics[scale=.027]{flasche.png} } }