Variables and expressions
Inputs, variables, built-in values, the {{ }} expression language, its functions, and secrets stored with Windows protection.
Workflows pass data between nodes through variables. Any node field can read them with an expression in double braces, for example {{ row.email }}.
Inputs and variables
Open Inputs, variables & settings in the designer toolbar.
- Inputs are asked for when a task starts (or a test run begins). Each has a name, type, optional default, Required flag and a description shown in the run dialog. Inputs are available by name (
{{ query }}) and underinputs({{ inputs.query }}). - Variables are named values with a default, available to every node.
Types: string, number, boolean, datetime, array, object, null, secret, any. Names start with a letter or _, then letters, digits or _, up to 64 characters (names starting with _ cannot be used in expressions).
A node's result is stored with Save to: type a variable name and the result is written there. Set variable, Increment (starting from 0), Append to list (starting from an empty list) and Merge object create the variable if it does not exist yet; Delete variable removes it.
{
"inputs": [{"name": "query", "type": "string", "default": "", "required": false}],
"variables": [{"name": "results", "type": "array", "default": []}]
}Built-in values
| Name | Value |
|---|---|
inputs | All task inputs; with a dataset, inputs.row is the current row |
profile.id, profile.name, profile.tags, profile.group | The profile this run uses (group is its group id) |
task.id, run.id, run.index, run.attempt | The task, this run, its position in the task and the attempt number |
item, index | The current loop item and position (or the names you chose) |
error | The last error: {code, message, node} |
last | The result of the most recent browser node |
Each profile's run has its own copy of every variable, so runs that execute in parallel never see each other's values. Loop variables exist only inside the loop body.
Expressions in fields
{{ … }}inside text is replaced by the value:Hello {{ profile.name }}→Hello Shop A. Lists and objects are inserted as JSON,nullas empty text and booleans astrue/false.- A field that is exactly one
{{ … }}keeps the value's type:{{ rows }}passes the list itself,{{ max_pages }}a number. - Condition and expression fields — the
conditionof If / Else, While, Wait until condition, Validate value and Filter list, and theexpressionof Map list and Calculate — take a bare expression without braces:total > 0 and status == 'ok'.
The expression language
Expressions are a small, safe language. They are parsed and checked against a whitelist — never executed as code — so a workflow imported from elsewhere cannot run anything on your computer.
Allowed:
- literals:
'text',"text",42,3.5,true,false,null(alsoTrue,False,None), lists[1, 2], objects{'a': 1}; - names and access:
row.email,row['e-mail'],items[0],items[-1], slicesitems[1:3](.works on objects); - arithmetic
+ - * / // %(+joins text; a number added to text becomes text); - comparisons
== != < <= > >=,in,not in,is,is not; and,or,not, andx if condition else y;- the built-in functions below.
Not allowed: method calls (text.upper()), keyword arguments, imports, assignments, names beginning with _, and anything else outside the list. An expression is at most 2,000 characters, and results are size-limited.
Functions
| Group | Functions |
|---|---|
| Types | str(x), int(x), float(x), number(x), bool(x), list(x) |
| Text | lower(s), upper(s), trim(s), contains(a, b), startswith(s, p), endswith(s, p), replace(s, a, b), split(s, sep), join(list, sep), regex_match(s, pattern, group) |
| Numbers | round(x, n), abs(x), min(…), max(…), sum(list), floor(x), ceil(x), range(…) |
| Lists and objects | len(x), first(list), last(list), keys(obj), values(obj) |
| JSON | json(x) — parses text, or turns a value into JSON text |
| Dates | now() (ISO date-time; now('%H:%M') formats it), today() (YYYY-MM-DD), date_format(value, format) |
| Defaults | default(x, fallback) — the fallback when x is undefined, null or empty |
| Secrets | secret('name') |
Examples:
{{ len(found.items) }}
{{ lower(trim(row.email)) }}
{{ default(row.phone, 'n/a') }}
{{ 'reports/' + today() + '.xlsx' }}
{{ round(number(row.price) * 1.1, 2) }}
{{ regex_match(order_text, '#(\d+)', 1) }}Undefined values
A name that does not exist is undefined. In a condition it counts as false, and comparing it gives the result for null; using it as a value (in arithmetic, or inserted into a field) fails the step with expression_error — wrap it in default(). The Problems tab warns about names used but never defined. Comparing different types with == is false ('5' == 5 is false), so convert first with number() or str().
Secrets
Store passwords, API keys and tokens in RPA Plus → Variables & Data → Secrets → Add secret. Names use letters, digits, _, . and - (up to 64). Values are sealed for your Windows user with Windows data protection; Quin shows only the names afterwards, and you can replace or delete a secret.
Use a secret in any field with {{ secret('crm_password') }}. Secret values are redacted from run logs, step details and outputs, and workflow exports carry only the reference, never the value. A secret-typed input has no default: when a task asks for it, type {{ secret('name') }}, never the secret itself. If a secret does not exist, the step fails and names it.