Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 6

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))

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
Labels (1)
0 Kudos
(1) Reply
Level 13

Logical OR operator in InstallScript is ||
Logical AND operator in InstallScript is &&
0 Kudos