SET

From STX Wiki
Jump to navigationJump to search
var := SET anyvalue

Assign a value to a variable. For example:

#question := set 'How much wood would a wood chuck chuck?'

Under certain conditions it is possible to omit the SET keyword altogether, but this is strongly discouraged because you can never be sure if these conditions apply (we can't either).

For the curious: The keyword SET may be omitted if (and only if) the first word of the value to assign is neither a built-in STx command nor the name of a macro, member function, and so on. Since this is nearly impossible to guarantee, we strongly encourage to never omit the SET keyword.

Navigation menu

Personal tools