$clone

Make a copy of an object and optionally of all its referenced objects.
Syntax
    $clone{obj}[{deep}]?
Documentation$clone:
Make a copy of an object. If deep is not given or true all referenced objects by the object will be recursively cloned, too. This means that e.g. cloning an array with deep as false just clones the array, not the array elements.
    Paramter:
      1 - object to clone 2 - deep copy; boolean, optional, defaults to true (1)
    Returns:
      A copy of parameter 1.
    Throws:
      IllegalArgumentException
Examples
$set{a1}{$array.new{}} $set{a1[0]}{hello} $set{a2}{$clone{$get{a1}}} Contents: $get{a1[0]}-$get{a2[0]}
GroupString
Minimum required transaction-mode:NONE
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 2