Comment on page
Variable and Field Setting Order
The order in which variables and fields are listed in scripts, passed parameters, and set.
Starting in April 2021, variables and fields are organized to help reduce duplication and to quickly find the variable or field when searching a script. The order is segmented (see below) and each segment is in alphabetical order.
The order can be described as follows:
- 1.Passed parameters (for variables only; when received by a subscript).
- 3.Everything else that is not dependent upon another variable or field.
- 4.Variables or fields that are dependent upon the definition of another variable or field.
- 5.Global variables.
An example of passing parameters in JSON
Example of passing parameters in JSON in a specified order
An example of receiving variables and setting fields (Note: this script is not receiving the JSON object above. A separate script is used for brevity).
An example of a script with received values and setting fields
Not all scripts have this order at the time of this documented note (2021-Apr-27 07h57). Adjustments are made as the file is updated.