There are several distinguished values in MAXScript that are implemented as global instances of their classes. Some examples are:
undefined
ok;
unsupplied
true_value
false_value
Because these are actual instances of a Value
derived class and most SDK functionality works with Value
*, it is important to remember to pass them by address as in the following example:
return & ok; // return the ok value
if (val == &true_value) ... // value true?