$getRoot

Returns the id of the root branch.
Syntax
    $getRoot{}
DocumentationReturns the id of the root branch:

    Returns:
      the id of the current root branch.
Examples
    $forEach {i}
      {
      $getRoot {$getChildren{}}
      }
        {}

    Result:
    if variable i applies, get root branch ID of all children branchs
    IDs
GroupBranch
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters0
Maximum parameters 0