storing an array of strings in a profile attribute
Hi,
I have the following profile script:
if (mbox.name == "kevins_mbox") {
user.setLocal("arrayTest", ["hello", "world"]);
return user.getLocal("arrayTest");
}
However, when trying to use the array in a JS offer via: ${user.arrayTest}
The final output looks like this: [hello, world] - i.e. the quotes are missing and a JavaScript error is thrown.
According to this document: http://microsite.omniture.com/t2/help/en_US/tnt/pdf/js_expression_cheat_sheet.pdf
"Script Profile Parameters are found under the mboxes/profiles tab. You
can write Javascript programs that return any Javascript type (String,
integer, array, etc)"
Can someone tell me what I am doing wrong here?
Many thanks,
Kevin