string Property List: Difference between revisions
Jump to navigation
Jump to search
(New page: A string property list is a delimited string containing multiple key-value pairs, for example: <source lang="mtmacro" line> [h: stringPropertyList="var1=foo; var2=bar; var3=baz;"] </sourc...) |
No edit summary |
||
Line 7: | Line 7: | ||
String property lists are zero-based (''i.e.'', the first item in a string property list is item 0). When a key-value pair is extracted from a string property list using one of the available [[Macros:Functions:list_of_functions_by_area#String_Properties | string property functions]], the value of the pair is considered a string, and must be converted to or evaluated to a number to perform numeric computations. | String property lists are zero-based (''i.e.'', the first item in a string property list is item 0). When a key-value pair is extracted from a string property list using one of the available [[Macros:Functions:list_of_functions_by_area#String_Properties | string property functions]], the value of the pair is considered a string, and must be converted to or evaluated to a number to perform numeric computations. | ||
The default delimiter in a string property list is the semicolon (";"), however, the string property functions permit the use of alternate delimiters. | The default delimiter in a string property list is the semicolon (";"), however, the string property functions permit the use of alternate delimiters. | ||
String property lists may be stored in [[Token:token_property | token properties]]. |
Revision as of 21:50, 21 December 2008
A string property list is a delimited string containing multiple key-value pairs, for example:
[h: stringPropertyList="var1=foo; var2=bar; var3=baz;"]
String property lists are zero-based (i.e., the first item in a string property list is item 0). When a key-value pair is extracted from a string property list using one of the available string property functions, the value of the pair is considered a string, and must be converted to or evaluated to a number to perform numeric computations.
The default delimiter in a string property list is the semicolon (";"), however, the string property functions permit the use of alternate delimiters.
String property lists may be stored in token properties.