if $n lt 10, ge, eq, ne dans un fichier .kscript |
if $n < 10, >=, ==, != (XML conserve les mots ; and, or et not restent des mots dans les deux) |
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 ajoute toujours un test) |
|
match $n { case 1 { } default { } } |
match $n { 1 => { } _ => { } }, les mêmes branches qu'une expression match |
|
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, puis Window(title: "Hi") { } : un paquet n'est nommé que dans un import, et rien n'est importé silencieusement |
|