Command Reference CIB jsMerge

Functions

setData(variableName, value)

The function setData() sets the value of the variable „variableName“ to “value“.

{# setdata(“myVariable”, “Hello”)}
{# var i=42; set(“myVariable” + i, “Hello”)}

If the “variableName” contains a special separator (this is by default a decimal point “.”), the variable is considered to be a table variable with the first part describing the table alias and the second part describing the name of the node that has to be selected within the table. It is possible to overwrite the value of a table variable.