Forum Discussion

5 Replies

  • this is what i understand.

     

     

    == or eq?

     

    http://wiki.tcl.tk/12770
  • 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:

     

    https://devcentral.f5.com/Tutorials/TechTips/tabid/63/articleType/ArticleView/articleId/193/Polymorphism--Making-TCL-operators-work-for-you.aspx

     

     

    Aaron