Get the value associated to a given property. If the property does not exist, the specified default value is returned. Example: //Retrieve the value for a given key. If the key does not exist, the default value is shown myValue = get(propFile, key : "1", defaultValue : "No Value") display ("Value for key = 1 : " + myValue) // Key "1" exists amd has an associated value, therefore myValue contains the associated value myValue = get(propFile, key : "8", defaultValue : "No Value") // Key "8" does not exist, therefore myValue contains "No Value" display ("Value for key = 8 (that does not exist) : " + myValue)
| Name | Type | Description | Mode |
|---|---|---|---|
| key | String | the name of the property | in |
| defaultValue | String | the value to return if the property has no associated value | in |