Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   IF command (http://forums.winamp.com/showthread.php?t=255626)

x04001 16th September 2006 20:05

IF command
 
Hi,

I'm new to NSIS and i wonder how to do a simple IF command.
for example i have a MUI installation and based on $LANGUAGE value, i would like to copy a particular file.

Moreover, is there a way to tell something like :

define slovak 1051

like that i will compare $LANGUAGE to slovak and not to 1051.
thanks a lot,

x04001.

kichik 16th September 2006 22:53

There's an if command. Your code should up looking something like this:
code:
!include LogicLib.nsh
# ...
${If} $LANGUAGE == ${LANG_SLOVAK}
# something
${EndIf}



All times are GMT. The time now is 03:19.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.