# Can chlorine form hydrogen bonds? [duplicate]

My question is simple, If chlorine ($\ce{_17Cl^35^.^5}$) and nitrogen ($\ce{_7N^14}$) have similar values of electronegativity, and chlorine has way more lone pairs than nitrogen, what prevents it from forming hydrogen bonds ?

(other than in chloral dihydrate $\ce{CCl3CH(OH)2)}$