if Structure with goto

InstallShield 2016 » InstallScript Language Reference

InstallScript supports a special form of the if statement that can be used only with goto statements:

   if condition goto labelname;

This special structure is has the following features:

The condition must be followed by a goto statement.
The keyword then is not used.
The keyword endif is not used.

In the following example, the user will be prompted to enter a company name as long as szSrc is a null string (“”).

     Name:

      AskText("Company name:", "", szSrc);

      if (szSrc = "") goto Name;

See Also