$switchContextRoot

Set's the root branch to be the current for executing the given statements.
Syntax
    $switchContextRoot{statement_1}{statement_2} ... {statement_n}
DocumentationSet's the root branch to be the current for executing the given statements:

    Parameters:
      statement_1 through statement_n, the statements to be executed on the root branch.
    Returns:
      whatever the return value of the executed statements is.
    Note:
      the statements will be executed on the root branch by the current user.
Examples
    $switchContext{$getCurrent{branch}}
      {
      $if{$equals{$getVariable{i}}{$getVariable{k}}}
        {content1}
          {$switchContextRoot{$getProperty{a}}}
      }

    Result:
    if variable "i" equals variable "k" content1 for the current branch applies,
    otherwise property "a" only available in the rootbranch applies
GroupBranch
Minimum required transaction-mode:READ
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters <unlimited>