Dictionary.Lookup
From Xojo Documentation
Method
Dictionary.Lookup(Key As Variant, defaultValue As Variant) As Variant
Supported for all project types and targets.
Supported for all project types and targets.
Looks up the passed value of Key. Returns a Variant.
Notes
If Key is found, it returns the corresponding value. If Key is not found, it returns the passed defaultValue.
Sample Code
This example looks up the passed color in the Dictionary.