get_next_activity: Get the next/prev activity
Description
It takes an external pointer to an activity an returns the next/prev activity.
Usage
get_next_activity(activity)get_prev_activity(activity)
Arguments
activity
an external pointer to the activity.
Value
Returns an external pointer to an activity object.