Go Back   Winamp Forums > Developer Center > NSIS Discussion

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 15th April 2008, 18:23   #1
WhiteRab
Junior Member
 
Join Date: Apr 2008
Posts: 4
!if !endif problem

I try to use !if and !endif in the macro, but it always fails to check the if condition as below. I'm noticed the text color of "!if" didn't change to green color as the !macro. It shows in black color. Does anybody know why it is wrong? I use NSIS version 2.36

!define BUILD_TYPE "1"

!macro SET_BUILD_TYPE
!if ${BUILD_TYPE} == "1"
!define APP_NAME "BETA"
!else
!define APP_NAME "FULL"
!endif
!macroend

Thanks, Oai
WhiteRab is offline   Reply With Quote
 
Go Back   Winamp 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