KScript docs
EN

What changed

Statements and operators

Before Now
if $n lt 10, ge, eq, ne in a .kscript file if $n < 10, >=, ==, != (XML keeps the words; and, or and not stay words in both) fix (KS6012)
} else if $b { } elif $b { fix (KS6012)
input(into = name) input(into: name) fix (KS6012)
catch NotFound, Conflict as e catch NotFound | Conflict as e fix (KS6012)
catch err when $err.type == 'NotFound' catch NotFound as err (when still adds a test)
match $n { case 1 { } default { } } match $n { 1 => { } _ => { } }, the same arms as a match expression
test(name: "x", each: n, in: [1, 2], index: i) { } for n at i in [1, 2] { test(name: "x {$n}") { } }
KScript.Window(title: "Hi") { }, KScript.input(...) import KScript.UI, then Window(title: "Hi") { }: a package is named only in an import, and nothing is imported silently