Goto operator use

Avoid using the GoTo operator in 1C:Enterprise language code as its use can result in complicated and ill-structured modules. It is difficult to understand the execution sequence and interrelation of its snippets. Instead of the GoTo operator, use other statements of 1C:Enterprise language.

Noncompliant Code Example

If ChartOfCalculationTypes = Object.ChartOfCalculationTypes Then

  GoTo ChartOfCalculationTypes;

EndIf;

Compliant Solution

If ChartOfCalculationTypes = Object.ChartOfCalculationTypes Then

  ProcessChartOfCalculationTypes();

EndIf;

See