Syntax error in JavaScript (Rhino) if/else statement in HP OO 9 -


i'm building simple pre-response scriptlet in hp oo 9. mybody refers input variable "body". want change content of body input variable depending on whether or not empty. i'm getting complaint on line 5 , 6. line 5 states missing ; before statement , line 6 states syntax error. going on here? don't see unusual here.

mybody = body; if (!mybody || mybody.length === 0) {     body = "there no unassigned servers report."; } else {     body = ${myreport}; } 

mybody = body; if (!mybody || mybody.length === 0) {     body = "there no unassigned servers report."; } else {     body = "${myreport}"; } 

flow variables in hp oo 9 strings, value must included within set of quotation marks.


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -