keyval() Function

Returns the value(s) associated with the given key(s). This function performs the reverse of insertkeyval() function.

Syntax

keyval ( text, keys, separators, [delimiters] )

text: (Text) The text to parse.

keys: (Text Array) Array of keys.

separators: (Text Array) Array of key-value separators.

delimiters: (Text Array) Array of delimiters specifying the end of a value.

Returns

Text Array

Notes

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.

Examples

keyval("hello=alpha][goodbye=beta]", {"hello"}, "=", "]") returns alpha

See Also

insertkeyval(): Use this function to perform the inverse operation.

Open in Github Built: Fri, Nov 04, 2022 (07:10:52 PM)

On This Page

FEEDBACK