Docs Vector ExpressionsGetting StartedQuick Start FREE

Quick Start

This guide walks you through writing your first expression from scratch.

Step 1: Open the Block Editor

Navigate to any post or page and open the Block Editor.

Step 2: Add a Paragraph Block

Click the + inserter and add a Paragraph block anywhere on the page.

Step 3: Open the Vector Expressions Panel

With the Paragraph block selected, type the following expression in the block’s content:

{{user.is_logged_in ? "Welcome back, {user.name}!" : "Welcome, Guest!"}}

Step 4: Preview and Save

A preview of the resolved expression will appear in the block’s content. Click Update or Publish to save.

Step 5: View on Frontend

Load the page in a browser. If you are logged in, you will see your display name. If not, you will see the guest fallback.


What Just Happened?

You used a Ternary Expression (? :) to branch on user.is_logged_in, combined with string interpolation to build a personalized greeting — all resolved server-side with zero PHP or JavaScript written by you.

Next Steps