Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Statements List of the language JavaScript

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 (procedures) themselves. This means that the script, for example, of the Promotic object event is a body of the function (procedure) 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 commands 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
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice