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
Post a Comment