Archive: !if does not work


!if does not work
Hello,
I can not figure out, why the compile time command !if does not work in any of my scripts.
I am using the MakeNSIS v2.06 on linux and can not compile even the script consisting only from the documented (http://nsis.sourceforge.net/Docs/Chapter5.html#5.4.5) example:

!if 1 < 2
!echo "1 is smaller than 2!!"
!else if ! 3.1 > 1.99
!error "this line should never appear"
!else
!error "neither should this"
!endif

It returns the following:
Invalid command: !if
Error in script "test.nsi" on line 1 -- aborting creation process

Was the command removed recently from NSIS or am I doing something wrong?

Thanks
Andrius


You'd find that !if came in NSIS 2.15 if you checked the NSIS changelog :p

-Stu


[QUOTE]Originally posted by Afrow UK
[B]You'd find that !if came in NSIS 2.15 if you checked the NSIS changelog :p

Thanks, did not think that it changes so fast.
Andrius