KScript docs
EN

Error codes

KS2001

A value isn't written correctly. The message says what was expected. Common causes are a line that ends with an operator, a bracket that is never closed, and using && or || where KScript expects and or or.

<let>$total = 5 +</let> <!-- wrong: nothing after the + -->
<set name="total" value="5 + 1" /> <!-- right -->
$total = 5 +          // wrong: nothing after the +
$total = 5 + 1        // right