I am checking a stream of data in Pentaho Data Integration and am using some Javascript. Certain fields may have one asterisk as the value. So I have:
if (Workgroup = "*") {
summary_level = "A";
} else {
summary_level = "W";
}
All values are getting set to "A", even fields where the value is not "*". I have tried:
Workgroup = /\\*/
Workgroup = /\*/
I know I have to escape it, just not sure how I have supposed to write it as a regular expression.