Javascript scripting: set variable to something or blank string

 

set to a value or blank:

var sType = current.cat_item.u_approval_type.toString() || "";

Comments

Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

Running transform maps asynchronously