Hi,
There is no way to determine the next of the last value for [urls.$] or [urls.#]. TBS merges rows one by one, without looking what comes after.
But the good new is that a splitter section can probably do what you're trying to do. A splitter section is defined by parameter "splittergrp".
It could be something like this:
<a href="[urls.url;block=a;p1=[items.$]]">[urls.name;magnet=a]</a>
[urls;block=begin;splittergrp=url],[urls;block=end]
|
[urls.#] is the row number when placed inside the block,
It is the total number of rows when placed outside the block.
[urls.$] is the row id. It is the item key when the data source is an array.