KScript docs
EN

Error codes

KS2002

= is used where a value is expected. To compare, write ==. To give a variable a value, put the assignment on a line of its own.

<if $count = 1 /> <!-- wrong -->
<if $count == 1 /> <!-- right -->
if $count = 1 { }    // wrong
if $count == 1 { }   // right