Archive: If statements


If statements
I am really excited about finding NSIS. It will be very useful and seems to be pretty powerfull. I do have a questions however.

Are there any plans to add "if" statements to the syntax. It seems that the only way to implement "if" statement logic in NSIS is to use StrCmp and goto statements. Some of these get quite complex when a simple if, elseif, else chain would simplify things greatly (or even case statements).

Just wanted to know. Thanks again for great product.


!include LogicLib.nsh

Function blah
${If} $0 == 1
MessageBox MB_OK "$$0 is one"
${EndIf}
FunctionEnd
See Examples\LogicLib.nsi for more.

Thanks, that is axactly what i was looking for...