It is also more effective.
In the first example, each one will be checked, even if the input is "Hello". So you have all three checks.
In your second example, execution will stop as soon as it finds a branch, so if the user types "Hello", it will be only one check instead of three.
, , , .