To retrieve the user defined value for any specific object:
Access the Value property for the desired item in the UserValues (Collection) of the object, for example:
SMyString=Object.UserValues[name].Value.
If the named/indexed item does not exist in the UserValues (Collection) for the specified object and the error occurs outside of a “try-catch” block, the message: “No such property” is written to the Console window, and the script fails.
To continue executing a script when a value cannot be identified, include the Value syntax in a try-catch block.