$switchContext

The function "switchContext" switches variable, document and function context to those for branch specified in parameter 1 for all following parameters.
Syntax
    $switchContext {}{}
DocumentationThe function "switchContext" switches variable, document and function context to those for branch specified in parameter 1 for all following parameters.
Examples
    $switchContext{$getCurrent{id}}
      {
      $sql
        {
        INSERT INTO Users VALUES (
        '$getCurrent{newName}'
        }
      }

    Result:
    context of variable, document and function of the current branch ID
    appears in the sql command
GroupBranch
Minimum required transaction-mode:READ
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters2
Maximum parameters <unlimited>