Reference/Return: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page with "=Return= Returns from a function or section. <highlight-nsis>Function func StrCmp $0 "return now" 0 +2 Return # do stuff Fu...")
 
mNo edit summary
 
Line 13: Line 13:
   ;"Return" will return here
   ;"Return" will return here
SectionEnd</highlight-nsis>
SectionEnd</highlight-nsis>
''Command introduced with NSIS v1.80''

Latest revision as of 20:46, 4 June 2013

Return

Returns from a function or section.

Function func
  StrCmp $0 "return now" 0 +2
    Return
  # do stuff
FunctionEnd
 
Section
  Call func
  ;"Return" will return here
SectionEnd

Command introduced with NSIS v1.80