Incari Studio
1.0.0
1.0.0
  • INCARI Studio Documentation
  • Getting Started
    • Minimum Requirements *
    • Installation and License *
    • Creating a Project
    • Project Objects
      • Screen
      • Scene
    • Scene Objects *
      • Camera
      • Group
      • Mesh
      • Lights
      • List Widget
      • Text
      • Web Sprite
    • Attributes
      • Common Attributes
        • Object
        • Rotation Pivot
        • Sprite
        • Transformation
      • Attribute Types
        • Boolean Attributes
        • Numerical Attributes
        • Color Attributes
        • Asset/Object Attribute
    • Interface *
      • Modules *
        • Logic Editor
        • Project Outliner
  • Toolbox
    • Date Time
      • Now (UTC)
      • System Time
      • Timezone Value
    • Flow Control
      • Branch
      • Is Equal
      • Is Greater Equal
      • Is Less Equal
      • Select Data
      • Sequential
      • Switch
      • Toggle
  • Math
    • Absolute
    • Add
    • Average
    • Boolean
      • AND
      • Negate
      • OR
    • Ceil
    • Clamp
    • Decrement
    • Divide
    • Floor
    • Increment
    • Interpolate
    • Logarithm
    • Math Constant
    • Maximum
    • Minimum
    • Modulo
    • Multiply
    • Power
    • Range Mapper
    • Root
    • Subtract
    • Trigonometry
      • Arc Cosine
      • Arc Sine
      • Arc Tangent
      • Cosine
      • Radian-Degree Converter
      • Sine
      • Tangent
Powered by GitBook
On this page
  • Overview
  • Attributes
  • Inputs
  • Outputs
  • Inputs
  • Outputs
  • External Links

Was this helpful?

  1. Toolbox
  2. Flow Control

Switch

PreviousSequentialNextToggle

Last updated 3 years ago

Was this helpful?

Overview

Switch compares whether or not the Value of a single Data Input is equal to any of multiple pre-defined Values, also known as Cases. Whichever Case is evaulated to be equal to the Input, will trigger the corresponding Output Pulse. If there are no matches found, the Default Pulse will be executed.

While you should never have Cases of the same Value, be aware that equality is checked from top-to-bottom; meaning that if a match has been found, subsequent Cases won't be evaluated.

Attributes

The Switch Node has no Attributes.

Inputs

Attribute
Type
Description

Data Type

Drop-down

The type of data that will be plugged into the Input Socket.

Outputs

Attribute
Type
Description

Cases

List

The pre-defined Cases to compare with Input.

Inputs

Input
Type
Description

Pulse Input (►)

Pulse

A standard Input Pulse, to trigger the execution of the Node.

Input

Defined in the Data Type Attribute.

The Value to be compared with the list of pre-defined Cases.

Outputs

Output
Type
Description

Case: [n]

Pulse

An Output Pulse for each pre-defined Case, whose execution is triggered if the corresponding Case is evaluated as being equal to Input.

External Links

on Wikipedia.

Switch statement