Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 1st February 2006, 21:32   #1
l_d_allan
Member
 
l_d_allan's Avatar
 
Join Date: Jun 2005
Location: Colorado Springs, CO
Posts: 94
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:
code:

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?
l_d_allan is offline   Reply With Quote
Old 1st February 2006, 22:20   #2
dienjd
Senior Member
 
Join Date: Oct 2005
Posts: 189
I ran across this thread the other day, and I think it covers your question:

http://forums.winamp.com/showthread....convert+string
dienjd is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump