Forum Discussion
Kleython_Kell_5
Nimbostratus
Jul 18, 2012Operators
Hello,
Is there any diference in use the operator "equals" or use "==" ?
thanks a lot
5 Replies
- nitass
Employee
this is what i understand.
== or eq?
http://wiki.tcl.tk/12770 - Kleython_Kell_5
Nimbostratus
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.... - hoolio
Cirrostratus
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 - Kleython_Kell_5
Nimbostratus
thanks a lot :) - Kleython_Kell_5
Nimbostratus
thanks a lot :)
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
