The set statement
The set statement also assigns its first argument to have the value of its second argument. The first argument must be the name of a variable. It must be a scalar type. The second argument must be a numeric constant or constant expression. You should never use set with a variable of type float. For float types use mov instead. The syntax of the set statement is shown below.
set x, 10 // set x equal to 10
Because all arguments must fit into a 2-byte value in the NXT executable, the second argument of the set statement is limited to a 16 bit signed or unsigned value (-32768..65535).