Talk:How can I use conditional execution (If ... EndIf equivalent)?

From NSIS Wiki
Jump to navigationJump to search

If you include "LogicLib.nsh" you can use If like this:

${If} $0 == "OK"

 ...

${Else}

 ...

${EndIf}

and many many more formats - see "LogicLib.nsh" in NSIS/include directory and "LogicLib.nsi" in NSIS/examples directory.