Match a string one by one against a list of allowed values. Return the one that matched, or NULL (with warning) if none of them was matched.
1 | extractunit(unitlist, unitstr, type)
|
unitlist |
List of allowed units (e.g., the column names of a conversion matrix). |
unitstr |
The string to match against the allowed units |
type |
The type of unit we were trying to match (used to create warning messages). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.