Xojo.Core.Dictionary.Lookup
From Xojo Documentation
Method
Xojo.Core.Dictionary.Lookup(key As Auto, defaultValue As Auto) As Auto
Supported for all project types and targets.
Supported for all project types and targets.
Returns the value associated with the specified key. If there is no such entry, the defaultValue parameter is returned and no exception is raised.
Sample Code
If the User ID is not found in the Dictionary, return "UnknownUser":