class_visualscriptswitch.rst 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualScriptSwitch.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualScriptSwitch:
  6. VisualScriptSwitch
  7. ==================
  8. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Branches program flow based on a given input's value.
  13. Description
  14. -----------
  15. 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.
  16. **Input Ports:**
  17. - Sequence: ``'input' is``
  18. - Data (variant): ``=``
  19. - Data (variant): ``=`` (optional)
  20. - Data (variant): ``input``
  21. **Output Ports:**
  22. - Sequence
  23. - Sequence (optional)
  24. - Sequence: ``done``