To clarify further, the else-statement cannot stand on its own. It needs to be immediately after an if statement. The reason being is that the else-statement gets executed only if the condition of the if-statement before it is false. In this case the only thing that can make “ab <= varA” false is “ab > varA” which is covered already in your abc function clearly making it redundant code.