fragment.parent

Syntax

i = fragment.parent(fg)

Get the parent fragment ID. When fragments are calculated, a fragment may be broken into different fragments. In this case, one of the new fragments will keep the fragment ID and become the “parent” of the other fragments.

Returns:i - parent ID
Arguments:fg - fragment pointer