|
Alternative to the CF ListAppend function.
The list with the item appended.
<cfx_kmList F=ListAppend V=variable SHOW
LIST=list-string
VALUE=value-string
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| VALUE | A value to be appended to the list. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
| TRIM | If the TRIM attribute is present, the output value is automatically trimmed. | YES |
Look for the best matching item in a list. The list is searched using a "similiarity" algorithm. The item most similar to the supplied value is returned. For more information, refer to the Similarity function in <cfx_kmMisc>
Returns the list item best matching the specified value.
The following variables are also set:
If the supplied value has nothing in common with any of the list items,
- kmMatchIndex - Index of the matching value within the list.
- kmMatchSimilarity - Similarity (0-100) of the value and the matching list item.
a match will not be found. In that case, the return value is empty and the variables kmMatchIndex and kmMatchSimilarity are set to zero.
In almost all cases, a match will be found. However, it is up to you to determine whether the match is "good enough". If the value of kmMatchSimilarity is too low, you may wish to reject the match.
<cfx_kmList F=ListBestMatch V=variable SHOW
LIST=list-string
VALUE=string
NOCASE
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| VALUE | Item to find in the list. | YES |
| NOCASE | If this attribute is present, the list search is case insensitive. | no |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Alternative to the CF ListDeleteAt function.
The list with the specified item deleted.
<cfx_kmList F=ListDeleteAt V=variable SHOW
LIST=list-string
POSITION=pos-number
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| POSITION | Number of the item to delete. First item = 1. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Alternative to the CF ListFind function.
Returns the index of the first occurrence of the value within the list.
Returns 0 if no value is found.
<cfx_kmList F=ListFind V=variable SHOW
LIST=list-string
VALUE=string
NOCASE
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| VALUE | Item to find in the list. | YES |
| NOCASE | If this attribute is present, the list search is case insensitive. | no |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Alternative to the CF ListFirst function.
The first item in the list.
<cfx_kmList F=ListFirst V=variable SHOW
LIST=list-string
DELIMITERS=string
TRIM >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
| TRIM | If the TRIM attribute is present, the output value is automatically trimmed. | YES |
Alternative to the CF ListGetAt function.
The specified list item.
<cfx_kmList F=ListGetAt V=variable SHOW
LIST=list-string
POSITION=pos-number
DELIMITERS=string
TRIM >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| POSITION | List item number. First item = 1. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
| TRIM | If the TRIM attribute is present, the output value is automatically trimmed. | YES |
Alternative to the CF ListInsertAt function.
The list with the specified item inserted.
<cfx_kmList F=ListInsertAt V=variable SHOW
LIST=list-string
VALUE=list-item
POSITION=pos-number
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| VALUE | The list item to insert. | YES |
| POSITION | Position to insert the new item. First position = 1. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Given two lists, return a third list containing items which were found in BOTH supplied lists.
A list representing the intersection of two supplied lists.
<cfx_kmList F=ListIntersection V=variable SHOW
LIST1=list-string
LIST2=list-string
NOCASE
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST1 | String list one. | YES |
| LIST2 | String list two. | YES |
| NOCASE | Option to use case-insensitive list item comparisions. | no |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Remove duplicate items from a list.
The list with the duplicate items removed.
<cfx_kmList F=ListKillDups V=variable SHOW
LIST=list-string
NOCASE
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST | String list. | YES |
| NOCASE | Option to use case-insensitive list item comparisions. | no |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Alternative to the CF ListLast function.
The last item in the list.
<cfx_kmList F=ListLast V=variable SHOW
LIST=list-string
DELIMITERS=string
TRIM >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
| TRIM | If the TRIM attribute is present, the output value is automatically trimmed. | YES |
Alternative to the CF ListLen function.
The length of the list.
<cfx_kmList F=ListLen V=variable SHOW
LIST=list-string
DELIMITERS=string
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Alternative to the CF ListPrepend function.
The list with the item prepended.
<cfx_kmList F=ListAppend V=variable SHOW
LIST=list-string
VALUE=value-string
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| VALUE | A value to be prepended (added to the front of) to the list. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
| TRIM | If the TRIM attribute is present, the output value is automatically trimmed. | YES |
Alternative to the CF ListSetAt function.
The list with the specified item replaced.
<cfx_kmList F=ListSetAt V=variable SHOW
LIST=list-string
VALUE=list-item
POSITION=pos-number
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| VALUE | The new list item to set in place of the current item. | YES |
| POSITION | Position to set the new item. First position = 1. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Alternative to the CF ListSort function.
A sorted list.
<cfx_kmList F=ListSort V=variable SHOW
LIST=list-string
DELIMITERS=string
| Attribute | Description | Required? |
| LIST | A string list. | YES |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |
Combine two lists, eliminating duplicate items.
The combined list.
<cfx_kmList F=ListUnion V=variable SHOW
LIST1=list-string
LIST2=list-string
NOCASE
DELIMITERS=string >
| Attribute | Description | Required? |
| LIST1 | String list one. | YES |
| LIST2 | String list two. | YES |
| NOCASE | Option to use case-insensitive list item comparisions. | no |
| DELIMITERS |
Optional set of list delimiters. Default is a comma. For more information about delimiters, refer to Appendix D: The List DELIMITERS Attribute. |
no |