The following general specifics apply to JavaScript for the Designer:
If you want your function to return a value
add the return parameter to the operation signature
Please note that nothing will prevent you from returning values without having the return parameter defined on the operation.
|
NULL
.Thrown exceptions will be propagated outside the operation as standard Runtime exceptions. All JavaScript exceptions will be reported to the Designer as SCRIPTSM/1
. They can be caught using the JavaScript statement try{} catch(){}
. You can throw a user-defined exception using theĀ
throw
statement.