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
This commit is contained in:
eccles 2003-12-14 00:22:02 +00:00
parent a453e3281e
commit 2c892dde45
2 changed files with 324 additions and 69 deletions

View file

@ -1,16 +1,22 @@
name "Test"
outfile "test.exe"
silentinstall silent
Name "test"
OutFile "test.exe"
SilentInstall silent
!include "selectlib.nsh"
!include "logiclib.nsh"
Section
${SELECT} "test1"
${CASE} "test1"
MessageBox MB_OK "case test1"
${CASE} "test 2;test3"
MessageBox MB_OK "case test2 or test3"
${CASE_ELSE}
MessageBox MB_OK "case else"
${SELECTEND}
${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