ListQualify
Inserts a string at the beginning and end of list elements.
Method Signature
Arguments
list
string
true
The list to qualify.
qualifier
string
true
The string to insert at the beginning and end of each element.
delimiter
string
false
The delimiter used in the list.
,
elements
string
false
The elements to qualify. If set to "char", only elements that are all alphabetic characters will be qualified.
all
includeEmptyFields
boolean
false
If true, empty fields will be qualified.
false
Examples
Simple example for listQualify function with delimiter
To insert a string or character before and after the list elements.
Result: |boxlang|:|railo|:|144|:|boxlang|:|46|
Example for listQualify function with elements
To insert a string or character before and after the alphabet list elements only.
Result: |boxlang|:|railo|:144:|boxlang|:46
Example for listQualify function with includeEmptyFields
If includeEmptyFields is true, empty value add in list elements.
Result: |boxlang|:|railo|:144:||:|boxlang|:||:46
Additional Examples
Related
Last updated
Was this helpful?