Function EN Version 4.50

@TaskShouldStop

System

Syntax

@TaskShouldStop

Description

Returns 1 as the @Function result if the Engine should terminate, for example because the Notes server is being shut down. This function can be used as an abort condition for very long loops or endless loops that may occur during data import or in multitasking operation.

Example: @TaskShouldStop

EndlessLoop:=1;
WHILE(EndlessLoop)
{
   IF(@TaskShouldStop=1)
      {EndlessLoop:=0;}
   ELSE
      {@SleepMS(1000);}
}

An endless loop is executed until the Engine, or the Domino server, is terminated.

Note : This text was machine-translated and may contain inaccuracies.