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 shift positions, so keep the separators clean.
current_id requiredThe id whose predecessor 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 first entry, is not found in the list, or is empty, previous returns an empty string.
{previous:12-34-56:34}
{previous:alpha-beta-gamma-delta:gamma}
{previous:12-34-56:12}
{previous:12-34-56:99}
{previous:{ids:9e1d2b9f88e3d6c3bf0eb967378610d6}:4f3362a62847fe1f8c59ba28a92d42c0}
{previous:12--56:56}
{iftext:{previous:12-34-56:34}:Previous is {previous:12-34-56:34}:no previous}