Why is my branch not working?

If you are going to compare without a pointer, I suggest you compare classes:

There is also the option to cast if you want to cover child classes.

3 Likes