Skip to main content

Create Dynamic Content Variations

Build one experience that automatically adapts to show the right content to the right user based on their properties, events, and more.

Deborah Ramírez avatar
Written by Deborah Ramírez
Updated this week

Conditional Blocks show content based on user properties (like plan type or industry) and events (like actions users have completed in your product).

Before creating conditions, you'll need to send this data to Candu.

What are Conditional Blocks?

Conditional Blocks let you show different content to different users within a single document. Instead of creating separate segments or duplicating content for each audience, you define conditions that determine what each user sees based on their properties, events, or segment membership.

When to use Conditional Blocks

Conditional Blocks handle your segmentation logic within a single document. You define who sees what, and the right content appears automatically, no need to build multiple segments or duplicate the same content for different audiences.

Best for:

  • Showing different content to Free, Pro, and Enterprise users

  • Tailoring examples or instructions to specific industries

  • Hiding or revealing features based on user behavior or progress

  • Importing personalized content across workspaces (conditions travel with the content)

Setting up Conditional Blocks

Step 1: Add a conditional block

  1. Click Components on the palette to the left

  2. Select Conditional Block and drag it into your canvas

  3. Once placed, click Add Conditional Logic

Step 2: Define your conditions

  1. Click Create New Condition

  2. Name your condition (use something descriptive like "Enterprise view" or "Completed view")

  3. Choose a property, event, or segment

  4. Select your logical operator (like "is one of" or "contains")

  5. Click "Add Condition" to include additional logic if needed

  6. Click Save

Step 3: Add content to your conditions

Add any Candu content to conditional views, including other Candu content, and any component like buttons or iframes. Each condition acts as a container for the content you want a specific group of users to see.

⚠️ Important: How conditions work

  • Conditions are evaluated from top to bottom

  • Users see content from the first condition they match

  • Order matters: place your most specific conditions at the top

Manage Conditions

  • Use the options in the three-dot menu to edit, duplicate, move, or delete conditions:

  • Navigate between the conditional views using the floating bar:

  • Use the Layers panel to see the full hierarchy and quickly switch between views:

  • Check the breadcrumbs at the bottom of the Editor to find the parent Conditional Block:

Preview Conditions

  1. Open your document's share link

  2. Click on the "Conditions" button in the top navigation bar

  3. Select different conditional blocks

  4. The content will update in real-time to show what different users would see

Data connection onboarding interface showing three integration options: JavaScript integration with code snippet, REST API integration, and direct data integration with tools like Segment, Amplitude, Hubspot, and Salesforce. Bottom section includes help options to invite a developer or chat with support.

Common Questions

Can I nest conditional blocks within other conditionals?

Yes. You can place conditional blocks inside other conditional blocks for more complex personalization scenarios.

Can I track analytics for conditional content views?

Not yet. While you can't currently track when specific users view different conditional variations, this feature is planned for a future update.

Need Help?

If you have questions about implementing conditionals or need assistance with specific use cases, reach out via chat or email [email protected]. We'll be happy to help!

Did this answer your question?