Script Arguments

Table of contents

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

  • Fixed value (constant);

  • Variable (in particular, the field of the attached table in the line corresponding to the call);

  • Expression (arithmetic and string operations with variables, constants and functions from them, including functions with side effects).

  • Template

===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.