Next
Use the next
helper to select the next item in a list; you must pass an array as the first argument and the current item as the second argument. It is an error if the current item does not exist in the list.
Arguments
Array
The target array list.Any
The current item.
Example
If there is no next item available the block is not rendered.
See the next page partial which uses this helper to create a link to the next item in a menu.
warn
You should only use this helper with lists that do not contain duplicate values.