It depends on what you are doing with result. From the snippet we see, the variable should be declared before the if statements, otherwise you need to declare the variable within each if statement which is frowned upon. Now, the variable could be set as an empty string, but you could also declare it as null or leave off the =‘’ altogether leaving the variable declared but undefined. Or you could set it to a default statement ‘Tie’ and not worry about checking for ties.