Kingsfield Posted December 3, 2008 Share Posted December 3, 2008 Hi Again, I have to assign colour to 3 more variables in a column, the current script works fine for 2 variables in the column, however we need to add 3 more variables for Kitten, Puppy and Ferret. Please see the script below that works for the 2 variables in a column. I need help var fieldval = NormalizeEntities(Field("Sample 1 For Export")); var parts = fieldval.split(":"); if (parts.length < 2) return fieldval; var format = ""; if (ToLower(parts[0]) == "cat") format = "<color name=Red>"+"Cat:"; else format = "<color name=Black>"+"Dog:"; return format + parts[1]; :confused: Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.