Imagine a simple scenario involving a hero, a monster, and a sword.
If the hero has picked up the sword, collision with the monster kills the monster.
If the hero has not picked up the sword, collision with the monster kills the hero.
Currently, I have two almost identical code blocks: one kills the monster if the boolean is true and the second kills the hero if the boolean is false.
Is there any way to use an ELSE statement in this situation?