Reference/StrCmp: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Created page with "=StrCmp= str1 str2 jump_if_equal [jump_if_not_equal] Compares (case insensitively) str1 to str2. If str1 and str2 are equal, Gotos jump_if_equal, otherwise ...") |
mNo edit summary |
||
| Line 9: | Line 9: | ||
Goto +2 | Goto +2 | ||
DetailPrint '$$0 != "a string"'</highlight-nsis> | DetailPrint '$$0 != "a string"'</highlight-nsis> | ||
''Command introduced with NSIS v1.2g'' | |||
Revision as of 20:20, 4 June 2013
StrCmp
str1 str2 jump_if_equal [jump_if_not_equal]
Compares (case insensitively) str1 to str2. If str1 and str2 are equal, Gotos jump_if_equal, otherwise Gotos jump_if_not_equal.
StrCmp $0 "a string" 0 +3 DetailPrint '$$0 == "a string"' Goto +2 DetailPrint '$$0 != "a string"'
Command introduced with NSIS v1.2g