Add support for presets

This commit is contained in:
2020-03-15 13:55:59 +01:00
parent 88b841bb98
commit a68dc4f873
9 changed files with 96 additions and 1 deletions

View File

@@ -18,4 +18,12 @@ extend map as this {
function isNotEmpty() {
return not this.isEmpty();
}
function getOrDefault(key, default) {
if(this.containsKey(key)) {
return this.get(key);
}
return default;
}
}

View File

@@ -59,7 +59,7 @@ extend string as this {
output = -output;
}
return output;
return Int(output);
}
function substring(startIndex: int, endIndex: int) {