This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- InstallScript If Logic
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 14, 2007
10:05 AM
InstallScript If Logic
Greetings,
Is it possible to do Or/Ands in if statements.
Like in VB you would do
If condition = somevalue or condition=someothervalue then
do something
else
do something else
end if
I was trying to see this in the documentation, but didn't see it anywhere, so was wondering if this was possible.
Is it possible to do Or/Ands in if statements.
Like in VB you would do
If condition = somevalue or condition=someothervalue then
do something
else
do something else
end if
I was trying to see this in the documentation, but didn't see it anywhere, so was wondering if this was possible.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 14, 2007
10:08 AM
Yes, it works similarly to C; for logical-or:
And logical-and:
if ((var1=1) || (var2=2)) then // etc.
And logical-and:
if ((var1=1) && (var2=2)) then // etc.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Dec 14, 2007
10:17 AM
RobertDickau wrote:
Yes, it works similarly to C; for logical-or:if ((var1=1) || (var2=2)) then // etc.
And logical-and:if ((var1=1) && (var2=2)) then // etc.
Thank you.:)