User Controls

Is the email stars === to the length on the email?

  1. #1
    filtration Tuskegee Airman
    This post has been edited by a bot I made to preserve my privacy.
  2. #2
    Sophie Pedophile Tech Support
    Yes and JS style three equals grinds my gears.
  3. #3
    filtration Tuskegee Airman
    Originally posted by Sophie Yes and JS style three equals grinds my gears.

    "123" == 123 (true)
    "123" === 123 (false)
  4. #4
    A College Professor Naturally Camouflaged [your moreover breastless limestone]
    this post has been made by a bot he made to preserve the privacy
  5. #5
    Sophie Pedophile Tech Support
    Originally posted by filtration "123" == 123 (true)
    "123" === 123 (false)

    "123" == 123 should always be false because we have surrounded our string in quotes. Strings and integers aren't the same thing. And they will never be the same thing, i don't care how many equals you put there.
  6. #6
    filtration Tuskegee Airman
    Originally posted by Sophie "123" == 123 should always be false because we have surrounded our string in quotes. Strings and integers aren't the same thing. And they will never be the same thing, i don't care how many equals you put there.

    not in some languages... the 3 equals checks the types
  7. #7
    Sophie Pedophile Tech Support
    Originally posted by filtration not in some languages… the 3 equals checks the types

    Seems dumb, but then again if X is an array and 'X+' is a value in that array and Y is an array and 'X+' is a value in that array than Y is 'X+' and so is X. But Y does not == 'X+'.

    But python is funny like that with arrays and lists and dicts and such.
  8. #8
    Sophie Pedophile Tech Support
    That's from memory, but the point is: is and == don't do the same. Kind of like how == and === don't do the same thing in JS but for other reasons.
  9. #9
    filtration Tuskegee Airman
    Originally posted by Sophie Seems dumb, but then again if X is an array and 'X+' is a value in that array and Y is an array and 'X+' is a value in that array than Y is 'X+' and so is X. But Y does not == 'X+'.

    But python is funny like that with arrays and lists and dicts and such.

    In PHP too, we're checking the string against an int, with the === but we're just checking values with the ==, or you could cast them to their respective types.
Jump to Top