Array: string split and trim

 var sSD='SERVICES | ERROR | Multiple issues';

var sImpact=sSD.split('|')[0].toUpperCase().trim();

var sSeverity=sSD.split('|')[1].toUpperCase().trim();


gs.print(sImpact);


gs.print(sSeverity);


Comments

Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

URL link in addInfoMessage