2022.2

Table Of Contents
Python
Watch.SetVariable("MyVariable", "Desired value")
Watch.SetVariable("global.MyVariable", "Desired value")
Perl
$Watch->SetVariable("MyVariable", "Desired value");
$Watch->SetVariable("global.MyVariable", "Desired value");
Watch.Sleep
Pauses the process for the specified number of milliseconds. This can be used while waiting for some-
thing else to happen when the delay is known.
Syntax
Watch.Sleep(milliseconds: integer)
Example
In the following example, Sleep() pauses the process for 1 second (1000 milliseconds)
JavaScript
Watch.Sleep(1000);
VBScript
Watch.Sleep 1000
Python
Watch.Sleep(1000)
Perl
$Watch->Sleep(1000);
Script.ReturnValue
Set this variable to 1 (true) or 0 (false) in order to return a true or false status to PlanetPress Work-
flow, when using your script as a conditional branch. This variable will have no effect if the script is run
as an action.
If the property is not set, the default value is false.
Example
This example will always return true, as the condition is static. It is, after all, simply an example. You get
the idea.
Page 145