Added sections, functions, and labels. Now only instructions is left

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@970 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
rainwater 2002-09-10 12:05:31 +00:00
parent a2b932dbe8
commit beec5fe831
5 changed files with 76 additions and 3 deletions

8
Docs/src/labels.but Normal file
View file

@ -0,0 +1,8 @@
\H{labels} Labels
Labels are the targets of Goto instructions, or of the various branching instructions (such as IfErrors, MessageBox, IfFileExists, and StrCmp). Labels must be within a Section or a Function. Labels are local in scope, meaning they are only accessable from within the Section or Function that they reside in.
To declare a label, simply do:
\e{MyLabel:}
Labels cannot begin with a -, +, !, $, or 0-9. When specifying labels for the various instructions that require them, remember that both an empty string ("") and 0 both represent the next instruction (meaning no Goto will occur). Labels beginning with a period (.) are global, meaning you can jump to them from any function or section (though you cannot jump to an uninstall global label from the installer, and vice versa).