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
- :
- How to break out from a While...Loop?
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
Jul 28, 2017
09:38 AM
How to break out from a While...Loop?
Hello Friends,
I have a while loop, where in case of a condition i have to come out of the loop. i tried using the following ways:
a) trying to set multiple conditions in while loop -> Compilation error
while ((condition1) OR (Condition 2))
...
endwhile;
b) tried using break; -> Compilation error
break is an Undefined identifier
c) used goto statement -> Compilation error
Using goto inside a try/catch is illegal.
Please suggest how can i achieve this
Thanks
I have a while loop, where in case of a condition i have to come out of the loop. i tried using the following ways:
a) trying to set multiple conditions in while loop -> Compilation error
while ((condition1) OR (Condition 2))
...
endwhile;
b) tried using break; -> Compilation error
break is an Undefined identifier
c) used goto statement -> Compilation error
Using goto inside a try/catch is illegal.
Please suggest how can i achieve this
Thanks
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 31, 2017
10:44 AM
Logical OR operator in InstallScript is ||
Logical AND operator in InstallScript is &&
Logical AND operator in InstallScript is &&