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. 

Example:

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

Compare variables to other variables.

It is also possible to compare variables, so none of the values has to be static. This way you can react on different choices made in the video, or external variables. Examples how you can use this is option, are to calculate numbers, or to see if someone changed their answers overtime.




    • 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, ...
    • Changelog

      Changelog Over here you can see the new changes, bugfixes and updates of the Ivory Editor, Ivory Player and Ivory Platform. New Improved Fixed July 2024 Ability to customise and style these components: Fullscreen, Social, Mute, Play/Pause Chapter ...
    • Preloading in the Ivory Player

      Preloading To make the transitions from one clip to another as smooth as possible, the Ivory Player tries to preload as much as it can. With a lot of clips and time jumps, it is important to know in which ways the preload processes work so you can ...
    • 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 ...
    • 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 ...