AnsweredAssumed Answered

Script task execution

Question asked by seema on Apr 15, 2016
Latest reply on Apr 20, 2016 by seema
Hello everyone

I am executing a script task. I wrote the following code in script :

var scriptVar = 3;
var resultVar=" ";
var resultVarYes="yes";
var resultVarNo="no";
if(scriptVar>0)
{
scriptVar=scriptVar-1;
execution.setVariable("resultVar", resultVarYes)
}
else
{
execution.setVariable("resultVar", resultVarNo)
}


I want to put the value of "resultVarYes" in "resultVar". How to set this value. So i can use value of resultVar.
Any help is appreciated. Thanks in advance.

Outcomes