Incari Studio
2.0
2.0
  • Incari Studio Documentation
  • Getting Started
    • Requirements
    • Installation
  • Interface
    • Logic Editor
    • Project Outliner
    • Global Preferences
    • Attribute Editor
    • Material Editor
  • Objects
    • Project Objects
      • Scene
      • Screen
    • Scene Objects
      • Camera
      • Group
      • Lights
      • List
      • Mesh
      • Sprites
        • Sprite
        • Text
  • Toolbox
    • Array
      • Array Value
      • Clear Array
      • Concat Arrays
      • Get Array Element
      • Length of Array
      • Pop Array Element
      • Push Array Element
      • Set Array Element
    • DateTime
      • Date Time Formatter
      • Now (UTC)
      • System Time
      • Timezone Value
    • Events
      • Keyboard
        • On Key Press
        • On Key Release
    • Flow Control
      • Branch
      • Is Equal
      • Is Greater Equal
      • Is Less Equal
      • Select Data
      • Sequential
      • Switch
      • Toggle
    • Math
      • Add
      • Boolean
        • AND
        • Negate
        • OR
      • Ceil
      • Clamp
      • Divide
      • Floor
      • Maximum
      • Minimum
      • Modulo
      • Multiply
      • Power
      • Range Mapper
      • Root
      • Subtract
    • Incari
      • List
        • Generate List
        • Next List Entry
        • Previous List Entry
        • Select List Entry
        • Set Active
        • Set Current Index
      • Object
        • Get Alpha
        • Set Alpha
        • Get Scale
        • Set Scale
        • Get Rotation
        • Set Rotation
        • Get Position
        • Set Position
        • Get Visibility
        • Set Visibility
        • Set Tint
        • Get Tint
        • Get Material
        • Set Material
        • Set Text
    • Utilities
      • Group
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 takes an input value and triggers one of several output Pulses, based on whether or not the input matches a pre-defined value. These pre-defined values, referred to as cases in computer programming, can be defined as a list in the Cases Attribute. Each value added to the Node also creates a corresponding output Pulse. If the value of the Input Socket matches a value defined in the Cases Attribute, its corresponding Pulse is triggered. If no match is found, then the Default Pulse is triggered instead.

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 [n]

Defined in the Data Type Attribute.

The pre-defined values which will be compared to the value of the Input Socket.

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 value is evaluated as being equal to Input.

External Links

on Wikipedia.

Switch statement