Skip to content

$createTemporaryVar

$createTemporaryVar will create a new variable.

Usage

$createTemporaryVar[table;...vars]

Parameters

FieldTypeDescriptionRequired
tablestringVariable table.true
…varsstringVariable name and value, separated by colon (:).true

Example(s)

This will create a new variable with the name of “variable” and the value of “value”:

1
client.command({
2
name: "createTemporaryVar",
3
code: `
4
$createTemporaryVar[main;variable:value]
5
`
6
});

This will create two new variables with names “variable1” and “variable2”, with “value1” and “value2” as the values respectively.

1
client.command({
2
name: "createTemporaryVar",
3
code: `
4
$createTemporaryVar[main;variable1:value1;variable2:value2]
5
`
6
});

You can add more variables by adding another pair of variable names and values, ensuring that each variable is separated with semicolons.