- Added continue and break labels to repeat type statements.


git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3276 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
eccles 2003-12-14 00:25:22 +00:00
parent 46297fa6cd
commit d794979b2f
2 changed files with 40 additions and 22 deletions

View file

@ -87,6 +87,18 @@ Section
${loop}
MessageBox MB_OK "loopR1: $R1$\nloop2: $R2"
; break..continue labels
StrCpy $R1 0
${do}
StrCpy $R2 0
${do}
IntOp $R2 $R2 + 1
MessageBox MB_YESNO "Do..Loop1: $R1.$\nDo..Loop2: $R2.$\n$\nDo you want to stop Loop2?" IDYES ${_Break} IDNO ${_Continue}
${loop}
IntOp $R1 $R1 + 1
MessageBox MB_YESNO "Do..Loop1: $R1.$\nDo..Loop2: $R2.$\n$\nDo you want to stop Loop1?" IDYES ${_Break} IDNO ${_Continue}
${loop}
; while..exitwhile..endwhile
StrCpy $R1 0
${while} $R1 < 5 ;change to test while statement.