Archive: StrCmp works ok with numbers?


StrCmp works ok with numbers?
I've been using StrCmp to compare numbers, and just realized that perhaps I should be using IntCmp.

This seems to work fine, but perhaps ignorance is not bliss:


StrCmp $R0 1 RegIsOne RegIsNotOne
RegIsOne:
; do something
GoTo PastTest
RegIsNotOne:
; do something else
PastTest:

With numbers, are StrCmp and IntCmp equivalent? If not, what is the difference, and is IntCmp preferred?

I ran across this thread the other day, and I think it covers your question:

http://forums.winamp.com/showthread....convert+string