Skip to content

Homescript v2.3.0

Compare
Choose a tag to compare
@MikMuellerDev MikMuellerDev released this 15 Mar 18:24
· 26 commits to v2 since this release

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