All help topics · Link to this topic
Showing help on 'toobj()'
Syntax: toobj (<value>) => OBJConverts the given MOO value into an object number and returns that object number. The conversions are very similar to those for `toint()' except that for strings, the number *may* be preceded by `#'.
toobj("34") => #34
toobj("#34") => #34
toobj("foo") => #0
toobj({1, 2}) -error-> E_TYPE