keyval( text, keys, separators, delimiters )
Returns the value(s) associated with the given key(s). This function performs the reverse of insertkeyval() function.
See also: insertkeyval()
Keyword | Type | Description |
---|---|---|
|
Text |
The text to parse. |
|
Text Array |
Array of keys. |
|
Text Array |
Array of key-value separators. |
|
Text Array |
Array of delimiters specifying the end of a value. |
Text Array
If a single separator value is passed, it is used for parsing all key-value pairs; if multiple separators are specified, the number of separators must match the number of keys.
If a single delimiter value is passed, it is used for parsing all key-value pairs; if multiple delimiters are specified, the number of delimiters must match the number of keys.
keyval("hello=alpha][goodbye=beta]", {"hello"}, "=", "]")
returns alpha