No because both bcindex &lt; bclinkslen and bcindex !== bclinkslen return false when the two variables equal one another and not before. I'm using !== instead of &lt; because it is slightly faster.