Reply To: Conditionals?

FlowCanvas Forums Support Conditionals? Reply To: Conditionals?

#2978
blabz2007
Participant

Switch Enum works!

The problem with the IsValid node is that it’s not a Flow Node.

In the picture below, the GameObject the Notification Component is attached to may or may not exist. Destroy is a public method on Notification. I need to make sure Notification is not null before FlowCanvas attempts to call Destroy on it.

I guess the alternative would be to make the Destroy method static and do the null check there, but I feel like FlowCanvas must be able to handle for this some way.

Attachments:
  1. flowcanvas_nullcheck.png