The keywords if and else do not make a loop, they just have a block of code associated with their scope.

I do not know what you mean by end a subclass either.

Perhaps the code will help explain...