Skip to content

Commit 4b54ecb

Browse files
author
Philipp Gersch
authored
Add files via upload
1 parent 0b38688 commit 4b54ecb

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

changelog.txt

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,56 @@ NOTICE:
55
Another future plan: Command: "include <abs|rel> <pathToFile>" a command to include external compiled libraries "plug in style".
66
Added in 1.8.0 with the command: import "path_to_jar";
77

8+
1.9.10:
9+
- You can add an array element by adding any value to an array ($array + "newElement") <- This will add a new element to an array. A short version for the "push" command
10+
- You can concatenate two arrays using the "+" command now
11+
- You can use a tenary command for shorter if statements:
12+
println ($condition ? "Condition is true" "Condition is false")
13+
- Enhanced if statements. Instead of writing this:
14+
if $condition {
15+
println "true";
16+
} {
17+
println "false";
18+
}
19+
It will now look like this:
20+
if $condition {
21+
22+
} else {
23+
24+
}
25+
Also elseif is now possible which wasnt even a thing before 1.9.10. The new if- command is compatible with the old version!
26+
More info: file > Examples > tutorials > Variables and conditionals
27+
- You can use "?" as array index to let Devscript choose a random entry for you:
28+
colors = [black blue gray white];
29+
print $colors[?];
30+
- You can now use \n and \t inside Strings
31+
- You can also now put line breaks and tabs using the $n and $t variables. Example:
32+
println "this is one line" $n "this is another line";
33+
println "before tab" $t "after tab";
34+
- Provided more examples and better tutorials
35+
- Fixed an error where the "applicationListener" listener was not fired properly when a script was finished.
36+
- MASSIVELY improved the performance. Prepare for LIGHTNING SPEED AND EFFICIENCY!
37+
- Removed the "dict" datatype
38+
- You can now access dictionary (aka. "objects") properties with the standart "." notation.
39+
Instead of this (Even worse with nested objects):
40+
dict = (createdict);
41+
set $dict variable "some-variable";
42+
println (get $dict variable);
43+
Your script will now look like this:
44+
dict = (new-object {});
45+
dict.variable = "cool";
46+
println $dict.variable;
47+
More info under file > Examples > tutorials > Objects in the DevScript GUI Editor
48+
49+
1.9.9:
50+
- Added the option to add custom properties to commands using the Property.of(name, data) function
51+
52+
1.9.7:
53+
- Added Option to make commands not case sensitive.
54+
Process.setCaseSensitive(true/false);
55+
If true, the command 'println Test' is the same as 'PrInTLN Test'
56+
- Code cleanup
57+
858
1.9.6:
959
- Added error stream to "exec" command
1060

0 commit comments

Comments
 (0)