Reply To: How can I do a comparison to Enum types?

FlowCanvas Forums Support How can I do a comparison to Enum types? Reply To: How can I do a comparison to Enum types?

#2202
Gavalakis
Keymaster

Hello,

You need to use the “Switch Enum” node. Before you are able to actually use your enum type in the the “Switch Enum” node though, you first need to add your enum type to the Preferred Types Editor, so that it becomes available in the reflection menus.

1. Open up Preferred Types Editor Window (Tools/ParadoxNotion/FlowCanvas/Preferred Types Editor).
2. Click “Add New Type” to search and add your enum.
3. Back in FlowCanvas graph, add the “Switch Enum” node and in it’s inspector hit the “Select Enum Type” and select your enum.

You will thus end up with something like this (but for your enum type instead):
SwitchEnum

Let me know if that works for you.
Thanks.

Join us on Discord: https://discord.gg/97q2Rjh

Attachments:
  1. SwitchEnum.png