Goto

Syntax:
Goto ~<Label>;

Description:
Unconditional control transfer to another program statement. It transfers control from one statement to another. Statement scope is limited by a program module, procedure or function; it cannot transfer control to outside of a program module, procedure or function.

Label is an identifier that designates a specific statement where the control is passed during program execution. A label is separated from the statement by a colon and is proceeded by "~".

Example:

While True Do
 For every
Element Of ElementArray Do
  If Condition(Element) Then
   Goto ~ExitDoubleLoop;
  EndIf;
  ...
 EndDo;
EndDo;
~ExitDoubleLoop:
// continue calculations


     

1C:Enterprise Developer's Community