We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more

ELSE IF

Will run codeblocks when the connected if is false and the else if’s condition is true.

Appearance in Composition Pane
Description

Placed directly below an if, and will run indented codeblocks if the first if is false and the else if’s condition is true. Can also be placed under another else if.
Parameters

boolean


PREREQUISITE READING

IF precedes this tutorial


Example 1: Play different sounds based on the number of seconds left

If there are more than 10 seconds remaining, play a tick sound. Else If there are greater than 0 seconds, play a beep sound.

Next Up