Script Arguments
Review
Script components operate on arguments.
A script argument is an object whose value can be calculated at any time during script execution at the request of the active component.
The value of the argument is calculated at the stage of script execution on the server when control is transferred to the script component whose property defines this argument.
The result of the calculation is substituted as the value of the corresponding component property.
===Argument types
===Value types
The argument value can be one of the following types:
-
Number (integer or decimal);
-
Line;
-
Date/time.
Type casting
When comparing argument values, they are converted to the same type according to the following rule:
-
If the value types are the same, then no casting is performed.
-
If both values can be represented as numbers, a conversion to numbers is performed.
-
If both values cannot be represented as numbers, then a cast is performed to a string.