From 1f2833272d2ff0f235fd19a8b990e48c0177b783 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 13 Jun 2008 16:50:16 +0000 Subject: [PATCH] added IfNotThen git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5649 212acab6-be3b-0410-9dea-997c60f758d6 --- Examples/LogicLib.nsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Examples/LogicLib.nsi b/Examples/LogicLib.nsi index b47681b4..824bb45c 100644 --- a/Examples/LogicLib.nsi +++ b/Examples/LogicLib.nsi @@ -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"