$createBranch

Creates a new branch.
Syntax
    $createBranch{}
DocumentationCreates a new branch:

    Returns:
      the id of the created branch.
    Note:
      the created branch will be the child of that branch
      whos id is returned by calling the $getCurrent{b}

      to execute $createBranch the template 'onCreate'
      must exist in the current category (the category
      whos name is returned by calling $getCurrent{c}).
Examples
Create a new branch if the template named 'onCreate' exists in the current category:

    $if{$existsTemplate{$getCurrent{c}}{onCreate}}
      {
      $set{branch_id}{$createBranch{}}
      }
      {
      }
GroupBranch
Minimum required transaction-mode:UPDATE=TREE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters0
Maximum parameters 0