cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dinesh_redhawk
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))
...
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
Labels (1)
0 Kudos
(1) Reply
rguggisberg
Level 13

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