BrightSign BrightScript 3.0 Reference Manual User Manual
Page 19

14
a=5
If a=5 then print "a is 5"
Unlike the C language, BrightScript does not support use of the
= assignment operator inside an expression. This is
meant to eliminate a common class of bugs caused by confusion between assignment and comparison.
When assignment occurs, intrinsic types are copied, while BrightScript Objects are reference counted.