Forum Discussion

5 Replies

  • this is what i understand.



    == or eq?

  • Yes, the doubt is it. Use equals or use ==



    Until now, I dont find any diference to choose how to use.



    if someone knows one....
  • Basically use eq or equals for string comparisons and == for numerics. == will work for both numeric and string comparisons but using == on strings is less efficient.



    Here's an article Colin wrote on polymorphism with operators: