-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
34 lines (23 loc) · 875 Bytes
/
test.js
File metadata and controls
34 lines (23 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import OnyxJS;
//available functions
//MockUp.test() -- prints a test message
//MockUp.printl(s) -- prints the variable on a line and imediatly gose to the next line
//MockUp.print(s) -- prints a variable
//MockUp.wait_key() -- vaits 4 user input
//OnyxJS
//+-Core.console
//x0.console.write(<expression>) -- prints an expression result
//x0.console.writel(<expression>) -- prints an expression result and imediatly goes to a new line
//x0.console.waitKey() -- vaits 4 user input
var string="string test";
MockUp.printl(string);
MockUp.wait_key();
MockUp.test();//this procedure is located in MockUp.cs
var string=function(){return "lamda";};//
MockUp.printl(string());//inline don't work
MockUp.wait_key();
function z(){return "ze Z";}
MockUp.printl(z());
MockUp.printl(xz());// method from included files :D
x0.console.Write('x0 is born');
MockUp.wait_key();