Unreal Blueprint: Boolean "NOT" vs Branch's "False" output?

In the Mars Marine lecture “Impact Hits and Health Pickups,” at around the 8:00 mark, Gavin calls the “Is Health Full” boolean function, and then checks if it is “NOT” before passing it to the Branch. He then proceeds execution from the Branch’s “True” value. Here’s a pic:

Could we not just pass the “Is Health Full” boolean directly into the Branch and then execute from the “False” value instead? Here’s my blueprint to show what I mean:

I’m just curious if there is a practical reason to use a NOT modifier instead of the Branch’s False output, or if it was just done for the sake of readability. Thanks!

1 Like

You could but it’s functionally the same, at that point it’s just a matter of preference. Though elegant code prefers boolean tests to return true (it makes more sense when you write C++)

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms