Homescript v2.3.0
Changelog
- Added iterators
for element in ['a', 'b', 'c'] {
println(element)
}
for kv in {key1: "value1", key2: "value2"} {
println("Key:", kv.k, "Value:", kv.v)
}
for i in 0..10 {
println(i)
}
for i in 10.range() {
println(i)
}
for char in "Hello World!" {
print(char)
}
- Added date addition
time.add_minutes(time.now(), 1);
time.add_hours(time.now(), 1);
time.add_days(time.now(), 1);
- Expressions at the end of a block are now allowed
let res = if true {
1 + 2 + 3
};
- Fixed string to boolean casts