Promotic

Statements list of the JavaScript language

Some JavaScript statements cannot be used in the PROMOTIC system. It goes first of all about the statements that define functions and the statements for calling functions connected with them. These statements are meant for the definition of functions on the script level, while in the PROMOTIC system there is defined the content of the functions themselves. It means that the script, for example, of the Pma object event is a body of the function and therefore it is not possible to define other functions.
Useful statements:
breakExits a switch statement and a loop statement (for, while, do...while)
//Marks the portion of script that will be ignored during script execution (comment)
continueTerminates one iteration in the for loop and continues with the next iteration in the loop
whileRepeats a block of statements while the condition is true.
do...whileRepeats a block of statements while the condition is true
forRepeats a group of statements a specified number of times
functionFunction declaration
ifConditionally executes a group of statements, depending on the value of an expression
returnExiting the script (function) with the possibility of returning a value from this function
switchExecutes one of several groups of statements, depending on the value of an expression
try...catchImplements error handling
varDeclares variables
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

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