Update cookies preferences
Promotic

return - statement of language JavaScript

Description:
Exiting the script (function) with the possibility of returning a value from this function.
Syntax:

return [value];

value (optional) Return value.
Example1:
Conditional termination of the script with no returned value:
Select and copy to clipboard

if (nVar > 0)
{
return;
}
Example2:
Conditional termination of the script with returned value (in methods code on the "Methods" tab):
Select and copy to clipboard

if (nVar > 0)
{
return nVar;
}
PROMOTIC 9.0.29 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.