The END IF command is used to terminate a multi-line IF block -
Code:
If b0 = 1 Then
Gosub UpdateOutputs
End If
When it is a single line IF, with the command or action on the same line as the IF, there should be no END IF -
Code:
If b0 = 1 Then Gosub UpdateOutputs
Though I am not sure there are such examples in the manuals, a multi-line block can be put on one line by using colon separators. Because it is still a multi-line block in essence that needs the END IF to terminate it. Note the colons after the THEN and before the END IF -
Code:
If b0 = 1 Then : Gosub UpdateOutputs : End If