← BACK

All menus in the Events & Actions panel allow you to add conditional statements with counters and/or triggers to define more advanced logic. When the specified conditionals are met, the selected action or transition takes place.

To add or view conditional statements, in the Events & Actions panel, click the Conditional  icon for the respective action or transition. Then, in the displayed menu, click the Add icon next to the desired conditional.

The section below explains the individual settings for both types of conditionals. For details on counter conditionals, see also  Conditional Logic in Actions and Transitions. For use case examples of using counter conditionals, see Logic-Only Scenes. For a trigger conditional example, see Use Case 1

Conditionals

Add 

Click to add a block of counter or trigger conditionals. Depending on your design, you can add multiple sets.

Counter

Select the appropriate counter you have previously set at the scene or gesture level. For details, see Counters.

If you have to set a new counter, click New Counter, enter a descriptive name in the displayed dialog box, and click OK. It is good practice though to set your counters upfront, earlier in the project. For details, see Add a Counter.

Conditional

Select a conditional statement for the counter value:

  • Counter Equal
  • Counter Less Than
  • Counter Greater Than
  • Counter Less Than Or Equal
  • Counter Greater Than Or Equal

When the condition is met, the selected action or transition will occur. For example, see Logic-Only Use Case 2.

Value

Enter a counter value for the specified condition to be met.

Trigger

Select the appropriate trigger you have previously set at the scene or gesture level. For details, see Triggers.

If you have to set a new trigger, click New Trigger, enter a descriptive name in the displayed dialog box, and click OK

Delete  

Click to delete the respective conditional set.

 

Tip: To remove all conditionals for the action, click its Conditional icon in corresponding block in the Events & Actions panel.

Transition Attributes

Transition action menus have an additional set of conditional attributes that you can use to fine-tune the time when the transition should occur. To add or view transition attributes, click the Conditional  icon for the transition in the Events & Actions panel.

You can also use these attributes to define a time frame for triggers selected in the Trigger Conditionals section. For details, see triggers.

Tip: To ensure that a transition occurs immediately, for example, after the specified time has elapsed, clear the After Video event setting at the top of the Transition Action Menu.

Probability

If you are adding a single transition, keep the default value of 1, which means the transition will occur with 100% probability.

If you are adding multiple transitions for the scene, for example, to allow the user to take alternative paths and want to randomize them, enter a decimal between 0 and 1. For details, see Randomized Transitions.

Note: The total sum of the probability values for multiple transitions is not required to equal 100%, as Studio tallies the values you enter for each alternate transition and calculates its percentage accordingly.

Before Second

If you want to set a time limit for the transition, select the checkbox and enter the maximum number of seconds that can elapse. If this time is exceeded, this transition will not take place.

In trigger time frames, this is the upper time limit. For example:

  • If a trigger time frame is between 3 and 7 seconds, enter 7 in this field.
  • If there is no upper limit, for example, the alternate transition will occur as soon as the minimum amount of time has elapsed, leave this field blank.

See also Trigger User Case 2 Example.

 

Tip: To pinpoint a specific location in the video and enter a precise amount of time that needs to elapse, use the time value in seconds displayed above the timeline at the bottom of Canvas View.

After Second

If you want to delay the transition, select the checkbox and enter the minimum number of seconds that needs to elapse before the transition can occur.

In trigger time frames, this is the lower time limit. For example:

  • If a trigger time frame is between 3 and 7 seconds, enter 3 in this field. If this time minimum is not met, for example, if the user swipes after 2 seconds have elapsed, an alternate transition will take place.
  • If there is no lower limit, for example, the alternate transition will occur as soon as the demo transitions to the current scene, leave this field blank or enter a zero. 

See also  Trigger User Case 2 Example.

Was this helpful?

Updated June 27, 2019
Tags: