Quantcast
Channel: Script – sciter
Viewing all articles
Browse latest Browse all 47

Sciter Script, hidden treasures

$
0
0

There is otherwise keyword in script that is used in loop statements so this:

var emptyArr = [];

for(var el in emptyArr)
  stdout.println(el);
otherwise
  stdout.println("nothing seen, array is empty!");

will print nothing seen, array is empty!.

Statement or block after otherwise will be executed if body of the loop was not executed.


Viewing all articles
Browse latest Browse all 47

Trending Articles