I'm so confused!!!🤦‍♀️

There's a boy I like ALOT and he knows that I like him... BUT he has a girlfriend. :(

Okay so this is the confusing part in school every time he's with her in the halls and sees me he stops and talks to me but when he's with me and sees her he doesn't say anything to her just ignores her.

I'm confused i don't know why he does it I'm really confused