Usage: $copy(target,source)
Category: assignment
Implemented: Picard 0.9


Copies metadata from variable source to target. The difference from $set(target,%source%) is that $copy(target,source) copies multi-value variables without flattening them.

Note that if the variable target already exists, it will be overwritten by source.


The following statements will yield the values for target as indicated:

$set(target,This will be overwritten)
$copy(target,source)                   ==>  ""

$copy(target,source)                   ==>  "one"

$copy(target,source)                   ==>  "one"

$setmulti(source,one; two)
$copy(target,source)                   ==>  "one; two"