Archive: LogicLib commands usage


LogicLib commands usage
I have a suggestion for the usage of commands LogicLib uses:

- Multiple uses of commands inside, for example, an ${If} block. One example is using ${If} inside an already existing ${If} block; this now causes problems.

The real situation inside LogicLib.nsh is that actually it's using 1 define to store 1 label, and uses macros to make use of the last one label defined.

You could use a temporary variable to store several labels and use like ${StrTok} to get the string part. But you have to organize it like NSIS do with the stack:

StrCpy $Var `$Var|${__LINE__}`

And to retrive the last label:

${StrTok} $Var `$Var` | 1 1


I don't understand the problem. Nested ${If}s should work fine. Could you explain, give an example, etc?


Restarting my computer solved my case.:igor: