if(attributes[hypercols.field] != "" && attributes[hypercols.field] != " "){ var pre:String = (hypercols.pre == "NA") ? "" : hypercols.pre; var suf:String = (hypercols.suf == "NA") ? "" : hypercols.suf; attributes[hypercols.field] = String(pre + attributes[hypercols.field] + suf); }
if (attributes[hypercols.field]) { if (attributes[hypercols.valueOf()] != null) { attributes[hypercols.field] = String(pre + attributes[hypercols.field] + suf); } } else { attributes[hypercols.field] = ""; }
if(attributes[hypercols.field] != "" && attributes[hypercols.field] != " " && attributes[hypercols.field] != null){ var pre:String = (hypercols.pre == "NA") ? "" : hypercols.pre; var suf:String = (hypercols.suf == "NA") ? "" : hypercols.suf; attributes[hypercols.field] = String(pre + attributes[hypercols.field] + suf); }This code will be is the next hot-fix release.
attributes[hypercols.valueOf()] != nullBasically you are getting the value of the object in the hypercols array collection at i, and it will always be an object.
hypercols.addItem({field: cArr[0], name: cArr[1], alias: cArr[2], pre: cArr[3], suf: cArr[4]});