W3cubDocs

/Godot 3.0

VisualScriptSwitch

Inherits: VisualScriptNode < Resource < Reference < Object

Category: Core

Brief Description

Branches program flow based on a given input’s value.

Description

Branches the flow based on an input’s value. Use “Case Count” in the Inspector to set the number of branches and each comparison’s optional type.

Input Ports:

  • Sequence: 'input' is
  • Data (variant): =
  • Data (variant): = (optional)
  • Data (variant): input

Output Ports:

  • Sequence
  • Sequence (optional)
  • Sequence: done

© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.0/classes/class_visualscriptswitch.html