VisualScriptSwitch

Inherits: VisualScriptNode < Resource < Reference < Object

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–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_visualscriptswitch.html