Login or Sign Up
Logging in...
Remember Me?
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in NSIS Discussion only
Search
Advanced Search
Winamp & Shoutcast Forums
Forum
Developer Center
NSIS Discussion
Announcement
Collapse
No announcement yet.
Logiclib and expression compile error?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
dracore
replied
19 June 2020, 18:02
Originally Posted by
Nitorami
View Post
I have really no clue of that but note that you set the brackets differently... ${if} vs. {$if}...
Omgod I'm such an idiot
Stared at this so long that I didn't even see the mistype.
Thanks for that!
Leave a comment:
Post Comment
Cancel
Nitorami
replied
19 June 2020, 17:43
I have really no clue of that but note that you set the brackets differently... ${if} vs. {$if}...
Leave a comment:
Post Comment
Cancel
dracore
started a topic
Logiclib and expression compile error?
19 June 2020, 17:00
Logiclib and expression compile error?
The strangest thing - I can't seem to use the LogicLib expressions (e.g. ${If}etc..) whenever I am in a normal function.
Basically my script is like this (reduced for brevity):
!include "LogicLib.nsh"
Function .onVerifyInstDir
${If} $0 == 0 <<<<<<<< THIS WORKS
${EndIf}
FunctionEnd
Function StopAMCService
${if} $0 == 0 <<<<<<<< THIS WORKS
${endif}
{$If} $0 == 0 <<<<<<<< COMPILE ERROR
{$EndIf}
FunctionEnd
So in the .onVerifyInstDir function, ${If} is ok
In a regular function StopAMCService, lower case ${if} is ok but ${If} is not.
The error I get is:
Invalid command: "{$If}"
I am confused why this is the case. Can someone shed some light?
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
😀
🥰
🤢
😎
😡
👍
👎
Leave a comment: