Script functions reference > Script functions in alphabetical order > C > CompCReplaceMetada

CompCReplaceMetada
Syntax
CompCReplaceMetada(textin, $textout)
textin
$textout 
Description
Replaces metadata with values from the text resource in Composition Center.
If the text does not contain any metadata the $textout parameter is a copy of the $textin parameter and the function returns 1.
For information about other Composition Center resource functions, see Composition Center resource functions.
Returns
1
0
Example
if( CompCReplaceMetaData( $text, $textout ) == 1 )
{ Log( 0, "Text after metadata replacement: " + $textout ); }
else
{ Log( 0, "Failed to replace metadata" ); }
 
OpenText StreamServe 5.6.2 Updated: 2018-01-26