2019.1

Table Of Contents
if (!s) {
throw 449;
} else {
// Do something with Job Info 9!
Watch.Log("Job Info 9's value is: " + s,4);
}
See also: throw on developer.mozilla.org.
Python
In Python, the raise statement is similar to JavaScript and will stop processing and trigger the
On Error tab unless an except statement is used. See the python documentation.
s = Watch.GetJobInfo(9)
if not s:
raise NameError('Value cannot be empty')
else:
# Do something with Job Info 9!
Watch.Log("Job Info 9's value is: " + s,5)
Perl
In PERL, die stops execution of the script unless the unless command is used, but in order to
raise an exception and trigger the On Error tab, you must nest the die command inside an eval
statement. See the perl documentation.
$s = $Watch->GetJobInfo(9);
if ($s eq "") {
eval {die "Value cannot be empty!"};
} else {
# Do something with Job Info 9!
$Watch->Log("Job Info 9's value is: ${s}",4);
}
Special workflow types
PReS Workflow supports multiple input and output types, in so many different combinations
that it would be hard to give example processes for each possibility. However, some types of
Page 237