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 PROMOTIC object event is a body of the function and therefore it is not possible to define other functions.
Useful statements:
break Exits a block of for and switch
// Marks the portion of script that will be ignored during script execution (commentary)
continue Terminates one iteration in the for loop and continues with the next iteration in the loop.
do...while Repeats a block of statements while the condition is true.
for Repeats a group of statements a specified number of times
if Conditionally executes a group of statements, depending on the value of an expression
return Exiting the script (function) with the possibility of returning a value from this function
switch Executes one of several groups of statements, depending on the value of an expression
try...catch Implements error handling
var Declares variables
PROMOTIC 8.3.23 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice