Basic Expressions Intro
So far, you've used static values like "Hello, n8n!" in your nodes. But real workflows need dynamic values that change based on the data.
Expressions let you reference data from previous nodes and transform it. They're wrapped in double curly braces: {{ }}.
In this lesson, you'll learn to combine fields from your data using expressions.
What you'll practice:
- Using the
$jsonobject to access current item data - Combining multiple fields with string concatenation
- Writing your first expressions
Your Task
- 1Copy the exercise below
- 2Paste into your n8n editor (Ctrl+V)
- 3Solve it — use hints if you get stuck
- 4Check the solution when done
The exercise workflow has user data with first_name and last_name fields. Add an Edit Fields node that creates a full_name field by combining them.
Input data:
{
"first_name": "Jane",
"last_name": "Doe"
}
Expected output:
{
"full_name": "Jane Doe"
}
Use an expression to combine the two fields with a space between them.
Get the exercise workflow
Create a free account to copy exercises into your n8n editor.