A simple algorithm, in Corvid

Perhaps you could use–>

function getCurrentItem (): Object
getCurrentItem Parameters
This function does not take any parameters.
Returns
The current item, or null if there is no current item.