My understanding is that it does work within an <code>#if</code>, but only if you are using the <code>#each</code> helper with an array; when I switched the data that I'm iterating over to Objects, **@index** did not appear to work as expected.