Variables
Variables are used to store values and can be passed as parameters in some actions.
One special variable is $http-answer
which stores the result of the last HTTP request. Some actions, such as those related to JSON manipulation, can use this as an implicit variable.
$http-answer
cannot be set by the user, but its value can be retrieved with the var-get
action.
Get
The var-get
action returns the value stored in a variable.
Name | Type | Required | Action | Info |
---|---|---|---|---|
name |
string | Yes | Yes | Variable name. |
{"var-get" : {
"name" : “total_credit”
}
}
Set
The var-set
action stores a value in a variable. The value can have any type.
Name | Type | Required | Action | Info |
---|---|---|---|---|
name |
string | Yes | Yes | Variable name. |
value |
any | Yes | Yes | Variable value. |
{"var-set" : {
"name" : "total_credit",
"value" : {
"counter-value" : {
"counter" : "credit"
}
}
}
}