Variable trigger

Variable trigger and conditional logic

It basically says: If this (condition = true) then that (trigger an action). For example: if score = X, jump to video Y.
The possibilities of this trigger are endless. Frequently used applications are:
  • Scene segmentation based on data (see example)
  • Showing personalised images based on data
  • Using conditional logic to give combinations of choices different outcomes

How does it work?

Adding a variable trigger

Move your mouse over the timeline and click on the round blue (+) button. Continue by clicking on the green ‘Add trigger’ button. A new window will be opened, displaying all the available triggers. Select ‘Variable’ and click on add. 

Configurating a variable trigger

Click on the added trigger with you right mouse button, then click on ‘Variable conditions’. A new window will be opened. Click on the round blue (+) button to add a new ‘line’.  Fill in the fields with the variable name (attribute label), condition and the value. Click on the button ‘Set action’ to configurate the action.

Segmenting scenes based on data

Do you want to operate multiple (customer) segments in a (interactive) video? You can then fully automatically serve the right video’s to the right target audience. Use the variable trigger to segment, for example, on the basis of age, location or customer type. This ensures that every viewer will only see the content that is relevant to him or her.

  1. Place the different video fragments (chronologically) on the timeline.
  2. Add the variable trigger on the location of the timeline where the segmentation should take place, for example at the end of an intro of a video. Use you right mouse button to click on the trigger and choose ‘Variable conditions’. 
  3. Add a new line for each scene variant (variable, condition, value) and configurate the action: ‘Jump to element’. You can direct the viewer to a follow-up fragment per ‘value’, by configurating multiple video-fragments in the ‘jump to element’ section.

    Attention: the ‘actions’ window only displays the elements that have been added to the timeline. 

Show personal images based on data

  1. Place the variants of the image on the timeline. Place them, for example, in a parallel fashion on different layers over the same time span.
  2. Firstly, hide the images by selecting ‘Hide element’ (select the element > options > Hide element). .
  3. Add the variable trigger and configurate it with the ‘show element’ action. 


Condition 1

  1. Variable: type
  2. Condition: Equals
  3. Value: a
  4. Config: show element ‘image type A’
Condition 2

  1. Variable: type
  2. Condition: Equals
  3. Value: b
  4. Config: show element ‘image type B’

Conditional logic for different outcomes

It is also possible to give combinations of choices different outcomes. This kind of interactivity gives you the opportunity to collect input within a single view before showing relevant content to the user. This adds more structure for viewers and is usually a faster way to give users exactly what they are looking for. Perfect to use for guided selling or for funnelling viewers through an instruction video. Watch this example below.

Instead of adding just one condition, we created logic by combining conditions. Basically, you state: if this AND this AND this, do that. Setting up conditional logic using the variable trigger is quite simple.

Use square brackets [ ] to combine variables and separate them with commas. In this example we state: IF type=solid AND colour=blue THEN execute action X.

Condition 1
  1. Variable: [type,colour]
  2. Condition: Equals
  3. Value: [solid,blue]
  4. Config: jump to element X (video of the blue shirt with a solid logo on it)
Add multiple conditions to add different combinations and outcomes.

Conditional logic

    • Related Articles

    • Personalize using postMessage

      PostMessage is a safe method to communicate between different domains, for example between a website and an embedded Ivory player (iFrame). This allows you to personalize video’s realtime. The data is sent directly from a webpage to the iFrame, ...
    • Using Input Field

      The Input Field component allows you to create and edit variables. Variables are elements that can assume a certain value. A variable consists of a key and a value. The key is the ‘label’ of the variable, and is used to identify the variable. The ...
    • In-video scoring through interaction

      You can save scores using variables. Variables are elements that can assume a certain value. A variable consists of a key and a value. The key is the ‘label’ of the variable, and is used to identify the variable. The value is the meaning or merit ...
    • Show Dynamic text using tags

      Tags are used to show dynamic textual content. Tags can be applied in the Text Tool component. This will require the use of a tag that starts with a < sign and ends with a > sign. Between these arrows is listed a predefined key. This corresponds with ...
    • Play-button and home screen styles

      You can adjust the play-button and home screen style displayed at the beginning of the video through the parameters in the embed code. This allows you to change both the color of the play button, and the opacity of the overlay.  What are parameters? ...