Old 30th July 2020, 18:03   #1
Xtendera
Junior Member
 
Join Date: Jul 2020
Posts: 3
Question Is there an "and" for a Logic Lib if statement?

So I am creating a installer which has a custom NSDialogs page. After the user leaves the page, I check if the user has not checked any of the radio buttons. If they haven't, it show up with a message saying that they haven't checked anything and then it will not let the user move on. The only problem is that I have three if statements inside each other. Is there some kind of "and" in Logic Lib? If so, please tell me. Also, I made my if statement this way:

code:

${NSD_GetState} $radio1Pop $radio1
${NSD_GetState} $radio2Pop $radio2
${NSD_GetState} $radio3Pop $radio3
${If} $radio1 == 0
${If} $radio2 == 0
${If} $radio3 == 0
MessageBox MB_OK "Please check one of the radio buttons."
Abort
${EndIf}
${EndIf}
${EndIf}

Xtendera is offline   Reply With Quote
Old 30th July 2020, 23:37   #2
jooseng
Junior Member
 
Join Date: Apr 2018
Posts: 10
${If} $radio1 == 0
${AndIf} $radio2 == 0
${AndIf} $radio3 == 0

MessageBox MB_OK "Please check one of the radio buttons."

Abort

${EndIf}
jooseng is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
logiclib

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