Script.ReturnValue
Set this variable to 1 (true) or 0 (false) in order to return a true or false status to PlanetPress Workflow, when using your script as a conditional branch. This variable will have no effect if the script is run as an action.
Example
This example will always return true, as the condition is static. It is, after all, simply an example. You get the idea.
VBScriptDim everythingOK
everythingOK = true
if (everythingOK = true) then
Script.ReturnValue = 1
else
Script.ReturnValue = 0
end if
JavaScriptvar everythingOK;
everythingOK = true;
if(everythingOK){
Script.ReturnValue = 1;
} else {
Script.ReturnValue = 0
}
PythoneverythingOK = True
if everythingOK:
Script.ReturnValue = 1
else:
Script.ReturnValue = 0
Perl$everythingOK = 1;
if ($everythingOK) {
$Script->{ReturnValue} = 1;
} else {
$Script->{ReturnValue} = 0;
}
|
|