Error getting tags :
error 404Error getting tags :
error 404
merge("1+1 equals [[1+1]]") -- returns "1+1 equals 2"
merge("The current folder is [[the defaultFolder]]")
Use the merge function to combine text with the result of evaluating expressions in a single string.
Parameters:
The stringToEvaluate is a string of any length, which may include expressions enclosed in double square brackets ([[expression]]
) and return statements enclosed in "<?
" and "?>
" (<?return expression?>
).
Value:
The merge function returns a string.
Comments:
The merge function evaluates any expressions in double square brackets, and replaces them with the expression's value.
It also executes any return statements enclosed in "<?
" and "?>
", and replaces them by the value returned.
e.g. for example:
on mouseUp put quote & "Foobar" & quote && the short name of this stack \ & return & \ the layer of this card && "/" && the short ID of me into \ tVariable end mouseUp
... can be written:
on mouseUp put merge("[[quote]]Foobar[[quote]] [[the short name of \ this stack]]") & return & \ merge("[[the layer of this card]] / [[the short ID \ of me]]") into tVariable end mouseUp