$createDocumentItem

Creates a document item.
Syntax
    $createDocumentItem{document_title}{document_contents}{document_annotation}
DocumentationFunction $createDocumentItem creates a document item:

    Parameters:
      document_title, the title of the document ot be created
      document_contents, the contents of the document to be created
      document_annotation, the annotation of the document to be created (optional).
    Note:
      the new document will be assigned to the current branch, the branch whos id is
      returned by calling $getCurrent{b}.
Examples
If a document named 'create-howto' does not exist on the current branch, create it:

    $set{title}{create-howto}

    $if{$existsDocumentItem{$get{title}}}
      {
      $//A document named 'create-howto' already exists.
      $//Trying to create another with the same name would cause an exception to be thrown
      }
      {
      $//Create it
      $createDocumentItem{$get{title}}{some_contents}{some_annotation}
      }
GroupBranch
Minimum required transaction-mode:UPDATE=TREE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 3