$hasParent

Examines if the specified branch has a parent or not.
Syntax
    $hasParent{branchID}
DocumentationExamines if the specified branch has a parent or not:

    Parameters:
      branchID, a optional parameter to specify a branch other than the current, defaults to the id of the current branch.
    Returns:
      1 if and only if the specified branch has a parent; 0 otherwise.
Examples
$hasParent{}

Result:
if the current branch is the children of a branch:
1
if the current branch is the root branch, root branch has no parent:
0
GroupBranch
Minimum required transaction-mode:READ
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters0
Maximum parameters 1