NSIS/Examples/LogicLib.nsi
eccles 2c892dde45 NSIS Logic Library - dselkirk's logiclib 1.3 (1.2 seems to have gone walkabout):
- Changed library name to Lib.
- Allow for 5 statements deep without use of name variable.
- Added If..ElseIf..Else..Endif statements.
- Fixed maximum allow statements.
- Now allows 10 statement depth.
- Condensed code.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3274 212acab6-be3b-0410-9dea-997c60f758d6
2003-12-14 00:22:02 +00:00

22 lines
No EOL
421 B
NSIS

Name "test"
OutFile "test.exe"
SilentInstall silent
!include "logiclib.nsh"
Section
${IF} "test" = "test2"
MessageBox MB_OK "test"
${ELSE}
${IF} "test" = "test"
${SELECT} 5
${CASE} 4
MessageBox MB_OK "case 4"
${CASE} 5;6
MessageBox MB_OK "case 5 or 6"
${CASE_ELSE}
MessageBox MB_OK "case else"
${ENDSELECT}
${ENDIF}
${ENDIF}
SectionEnd