SVG Conditional Highlights

Dynamically show, hide, or conditionally display specific elements within SVG graphics based on personalized data. This feature enables highly personalized visual content that adapts to individual recipient data.

How It Works

The system automatically detects highlightable elements in your SVG files by scanning for element IDs with specific prefixes:

  • lc_ - Liquid Content identifiers
  • hid_ - Highlight identifiers

When you upload an SVG file to a personalized graphic scene, the system automatically detects available highlights and makes them available in the narration editor.


Set Visibility States

For each highlight, choose one of three visibility states:

  • Show (green eye icon) - Always visible
  • Hide (red eye slash icon) - Always hidden
  • Conditional (yellow dotted eye icon) - Visibility based on condition

Basic Examples

Simple comparison:

{% if contact.revenue > 100000 %}true{% else %}false{% endif %}

Equality check:

{% if contact.status == "Premium" %}true{% else %}false{% endif %}

Multiple conditions:

{% if contact.score >= 80 and contact.region == "North" %}true{% else %}false{% endif %}

Condition Validation

The system validates that conditions evaluate to exactly "true" or "false" (string).

Error Example:

low

โŒ Error: โ€œInvalid condition, should be true or falseโ€

Correct Version:

false

Bulk Operations

The bulk operations feature allows you to efficiently manage multiple highlights at once.

Accessing Bulk Mode

  1. Open a Visual Explanation of any SVG slide
  2. Click โ€œSelect Allโ€ to enable bulk operations
  3. Checkboxes appear next to each highlight - you can unselect individual items if needed
  4. Use the toggle to set the desired state (Show/Hide/Conditional)
  5. Click โ€œApplyโ€ to apply the changes to all selected highlights