ids requiredDash-separated list of ids (or any values) to step through, in order. Usually the output of {ids:...} - a query result - but any dash-separated string works. Empty segments from a doubled or trailing dash are dropped and can break the step to the next item, so keep the separators clean.
current_id requiredThe id whose successor you want, taken from the ids list. It must be the same id type (long or short) as the entries in ids. If current_id is the last entry, is not found in the list, or is empty, next returns an empty string.
{next:12-34-56:34}
{next:alpha-beta-gamma-delta:beta}
{next:12-34-56:56}
{next:12-34-56:99}
{next:{ids:9e1d2b9f88e3d6c3bf0eb967378610d6}:5726c2c6b035d7aab450d1794e9e90d7}
{next:12--56:12}
{iftext:{next:12-34-56:34}:Next is {next:12-34-56:34}:no next}