This functionality is only available for certain module packages.

You are here: Reference > Formula Language > Recurrent formulas > Access to the previous object of a Collection

Access to the previous object of a Collection

This formula is based on the formula for Determining the Position Within a Collection. As result, the name of the previous object should be returned. Importantly, however, is to examine the case that the object itself is the first of the collection.

This example returns the name of the first object:

if (mc.mos.indexOf(this)>0) then mc.mos.pre(this).name else name endif