Old 8th December 2016, 22:08   #1
fireundubh
Junior Member
 
Join Date: Dec 2016
Posts: 1
Question What does the +2 in "IfErrors 0 +2" mean?

What does the +2 in "IfErrors 0 +2" mean?
fireundubh is offline   Reply With Quote
Old 9th December 2016, 00:55   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
The number of instructions to skip (including itself but excluding preprocessor instructions and attributes) but if you have to ask then you should be using labels or the LogicLib:

Quote:
!include LogicLib.nsh
${If} ${Errors}
...
${Else}
...
${EndIf}
+2 basically means skip the next instruction. 0 and +1 is the same thing and effectively skips nothing.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump