From c8bed407f8a8a495f10ac4973c6a3a0424a75d60 Mon Sep 17 00:00:00 2001 From: kichik Date: Fri, 13 Jun 2008 16:42:15 +0000 Subject: [PATCH] applied patch #1990761 - ${IfNotThen} macro for LogicLib git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5648 212acab6-be3b-0410-9dea-997c60f758d6 --- Include/LogicLib.nsh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Include/LogicLib.nsh b/Include/LogicLib.nsh index d4e44698..326417a2 100644 --- a/Include/LogicLib.nsh +++ b/Include/LogicLib.nsh @@ -19,7 +19,7 @@ ; AndIf|AndIfNot|AndUnless|OrIf|OrIfNot|OrUnless ; - Adds any number of extra conditions to If, IfNot, Unless, ElseIf, ; ElseIfNot and ElseUnless statements. -; IfThen..|..| +; IfThen|IfNotThen..|..| ; - Conditionally executes an inline statement, depending on the value ; of an expression. ; IfCmd..||..| @@ -461,6 +461,16 @@ !macroend !define IfThen `!insertmacro _IfThen` + !macro _IfNotThen _a _o _b _t + !verbose push + !verbose ${LOGICLIB_VERBOSITY} + ${IfNot} `${_a}` `${_o}` `${_b}` + ${_t} + ${EndIf} + !verbose pop + !macroend + !define IfNotThen `!insertmacro _IfNotThen` + !macro _ForEach _v _f _t _o _s !verbose push !verbose ${LOGICLIB_VERBOSITY}