I want to select the last 2 rows in a matrix field: You would expect that this could be easily achieved by using the following code.
{matrix}
{if row_count >= total_rows - 1}
test
{/if}
{/matrix}
However, this throws a syntax error:
Parse error: syntax error, unexpected T_STRING in expressionengine/libraries/Functions.php(683) : eval()'d code on line 168
Using just "total_rows" works perfectly fine, adding the the "-1" causes the error.
( EE v 2.5.5 )