Liquid Basics
Learn the fundamentals of Liquid templating language
In this section, we'll cover the fundamental concepts of Liquid that you'll need to create dynamic content in ConvertKit.
What is Liquid?
Liquid is a template language created by Shopify and used by ConvertKit to create dynamic content. It allows you to:
- Insert dynamic content into your emails and forms
- Create conditional logic
- Loop through lists of items
- Transform data using filters
Basic Syntax
Liquid uses two types of delimiters:
{{ }}
for output{% %}
for logic
Output Example
Logic Example
Variables
ConvertKit provides several built-in variables you can use:
subscriber.first_name
subscriber.email
subscriber.tags
subscriber.custom_fields
Basic Operators
Liquid supports common operators:
==
(equals)!=
(not equals)>
(greater than)<
(less than)>=
(greater than or equal to)<=
(less than or equal to)contains
(check if a value exists in a list)
Practice Exercise
Try this simple exercise in your ConvertKit email:
This will:
- Check if the subscriber has a first name
- Display a personalized greeting if they do
- Show a generic greeting if they don't
Next Steps
Now that you understand the basics, let's move on to ConvertKit-specific tags to learn about the special variables and features available in ConvertKit.