added IfNotThen

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5649 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-06-13 16:50:16 +00:00
parent c8bed407f8
commit 1f2833272d

View file

@ -304,7 +304,9 @@ Section /o "Run tests" TESTS
StrCpy $R2 ""
${IfThen} $R1 = 1 ${|} StrCpy $R2 $R2A ${|}
${IfThen} $R1 = 2 ${|} StrCpy $R2 $R2B ${|}
${If} $R2 == "A"
${IfNotThen} $R1 = 1 ${|} StrCpy $R2 $R2C ${|}
${IfNotThen} $R1 = 2 ${|} StrCpy $R2 $R2D ${|}
${If} $R2 == "AD"
DetailPrint "PASSED IfThen test"
${Else}
DetailPrint "FAILED IfThen test"